jellyfin-web/dashboard-ui/bower_components/emby-webcomponents/voice/commands/togglecommands.js
2016-10-18 01:06:48 -04:00

20 lines
435 B
JavaScript

define(['inputManager'], function (inputManager) {
'use strict';
function toggleDisplayMirror() {
return function () {
inputManager.trigger('toggledisplaymirror');
};
}
return function (result) {
switch (result.item.deviceid) {
case 'displaymirroring':
return toggleDisplayMirror();
default:
return;
}
};
});