mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
20 lines
564 B
JavaScript
20 lines
564 B
JavaScript
// TODO: This seems like a good candidate for deprecation
|
|
export default {
|
|
openUrl: function (url, target) {
|
|
if (window.NativeShell) {
|
|
window.NativeShell.openUrl(url, target);
|
|
} else {
|
|
window.open(url, target || '_blank');
|
|
}
|
|
},
|
|
enableFullscreen: function () {
|
|
if (window.NativeShell) {
|
|
window.NativeShell.enableFullscreen();
|
|
}
|
|
},
|
|
disableFullscreen: function () {
|
|
if (window.NativeShell) {
|
|
window.NativeShell.disableFullscreen();
|
|
}
|
|
}
|
|
};
|