Implement exit from app
This commit is contained in:
parent
f57729c35a
commit
514789724e
2 changed files with 26 additions and 2 deletions
|
@ -381,4 +381,16 @@ document.addEventListener("deviceready", () => {
|
|||
});
|
||||
});
|
||||
}
|
||||
})
|
||||
})
|
||||
|
||||
// =============================
|
||||
// Close Android app from JS
|
||||
// =============================
|
||||
|
||||
SceneManager.terminate = function () {
|
||||
navigator.app.exitApp();
|
||||
};
|
||||
|
||||
window.close = function() {
|
||||
navigator.app.exitApp();
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue