mirror of https://github.com/BTCPrivate/copay.git
Merge pull request #2283 from cmgustavo/bug/handle-back-and-menu-buttons
Handle back and menu button on devices with these buttons
This commit is contained in:
commit
3bf3dc2a47
10
js/init.js
10
js/init.js
|
@ -15,7 +15,15 @@ angular.element(document).ready(function() {
|
|||
if (!window.ignoreMobilePause) {
|
||||
window.location = '#!';
|
||||
}
|
||||
});
|
||||
}, false);
|
||||
|
||||
document.addEventListener('backbutton', function() {
|
||||
window.location = '#!/homeWallet';
|
||||
}, false);
|
||||
|
||||
document.addEventListener("menubutton", function() {
|
||||
window.location = '#!/more';
|
||||
}, false);
|
||||
|
||||
setTimeout(function() {
|
||||
navigator.splashscreen.hide();
|
||||
|
|
Loading…
Reference in New Issue