Handle back and menu button on devices with these buttons

This commit is contained in:
Gustavo Maximiliano Cortez 2015-01-07 11:32:44 -03:00
commit 6d1bf8a155

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