1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00
jellyfin-web/src/components/shell.js

30 lines
802 B
JavaScript
Raw Normal View History

define([], function () {
'use strict';
2018-10-23 01:05:09 +03:00
return {
openUrl: function (url, target) {
if (window.NativeShell) {
window.NativeShell.openUrl(url, target);
} else {
window.open(url, target || '_blank');
}
2018-10-23 01:05:09 +03:00
},
canExec: false,
exec: function (options) {
// options.path
// options.arguments
return Promise.reject();
},
enableFullscreen: function () {
if (window.NativeShell) {
window.NativeShell.enableFullscreen();
}
},
disableFullscreen: function () {
if (window.NativeShell) {
window.NativeShell.disableFullscreen();
}
2018-10-23 01:05:09 +03:00
}
};
2018-10-23 01:05:09 +03:00
});