Fix back button
This commit is contained in:
parent
aade8cd84b
commit
eb58604692
1 changed files with 2 additions and 2 deletions
|
|
@ -36,10 +36,10 @@ angular.element(document).ready(function() {
|
||||||
document.addEventListener('backbutton', function() {
|
document.addEventListener('backbutton', function() {
|
||||||
var loc = window.location;
|
var loc = window.location;
|
||||||
if (loc.toString().match(/index\.html#\/$/)) {
|
if (loc.toString().match(/index\.html#\/$/)) {
|
||||||
navigator.app.exitApp();
|
navigator.app.exitApp();
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
window.location = '#/walletHome';
|
window.location = '#/cordova/walletHome';
|
||||||
}
|
}
|
||||||
}, false);
|
}, false);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue