2020-07-26 22:45:00 +02:00
|
|
|
// 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();
|
2018-10-23 01:05:09 +03:00
|
|
|
}
|
2020-07-26 22:45:00 +02:00
|
|
|
}
|
|
|
|
};
|