mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-19 03:48:18 -07:00
20 lines
439 B
JavaScript
20 lines
439 B
JavaScript
define(['inputManager'], function (inputManager) {
|
|
|
|
function toggleDisplayMirror() {
|
|
return function () {
|
|
inputManager.trigger('toggledisplaymirror');
|
|
};
|
|
}
|
|
|
|
return function (result) {
|
|
|
|
switch (result.item.deviceid) {
|
|
case 'displaymirroring':
|
|
return toggleDisplayMirror();
|
|
break;
|
|
default:
|
|
return;
|
|
}
|
|
}
|
|
|
|
}); |