Handle back and menu button on devices with these buttons
This commit is contained in:
parent
be439f646f
commit
6d1bf8a155
1 changed files with 9 additions and 1 deletions
10
js/init.js
10
js/init.js
|
|
@ -15,7 +15,15 @@ angular.element(document).ready(function() {
|
||||||
if (!window.ignoreMobilePause) {
|
if (!window.ignoreMobilePause) {
|
||||||
window.location = '#!';
|
window.location = '#!';
|
||||||
}
|
}
|
||||||
});
|
}, false);
|
||||||
|
|
||||||
|
document.addEventListener('backbutton', function() {
|
||||||
|
window.location = '#!/homeWallet';
|
||||||
|
}, false);
|
||||||
|
|
||||||
|
document.addEventListener("menubutton", function() {
|
||||||
|
window.location = '#!/more';
|
||||||
|
}, false);
|
||||||
|
|
||||||
setTimeout(function() {
|
setTimeout(function() {
|
||||||
navigator.splashscreen.hide();
|
navigator.splashscreen.hide();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue