Fix back button

This commit is contained in:
Gustavo Maximiliano Cortez 2015-05-21 16:11:00 -03:00
commit eb58604692
No known key found for this signature in database
GPG key ID: 15EDAD8D9F2EB1AF

View file

@ -36,10 +36,10 @@ angular.element(document).ready(function() {
document.addEventListener('backbutton', function() {
var loc = window.location;
if (loc.toString().match(/index\.html#\/$/)) {
navigator.app.exitApp();
navigator.app.exitApp();
}
else {
window.location = '#/walletHome';
window.location = '#/cordova/walletHome';
}
}, false);