mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
vulcanize
This commit is contained in:
parent
07df993238
commit
55e40bdcf7
52 changed files with 12309 additions and 33 deletions
24
dashboard-ui/cordova/back.js
vendored
Normal file
24
dashboard-ui/cordova/back.js
vendored
Normal file
|
@ -0,0 +1,24 @@
|
|||
(function () {
|
||||
|
||||
Dashboard.exit = function () {
|
||||
|
||||
if (navigator.app && navigator.app.exitApp) {
|
||||
navigator.app.exitApp();
|
||||
} else {
|
||||
Dashboard.logout();
|
||||
}
|
||||
};
|
||||
|
||||
function onBackKeyDown(e) {
|
||||
if (Dashboard.exitOnBack()) {
|
||||
e.preventDefault();
|
||||
Dashboard.exit();
|
||||
}
|
||||
else {
|
||||
history.back();
|
||||
}
|
||||
}
|
||||
|
||||
document.addEventListener("backbutton", onBackKeyDown, false);
|
||||
|
||||
})();
|
Loading…
Add table
Add a link
Reference in a new issue