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:
Matias Alejo Garcia 2015-01-07 23:49:07 -03:00
commit 3bf3dc2a47
1 changed files with 9 additions and 1 deletions

View File

@ -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();