Fix back button
This commit is contained in:
parent
28461491af
commit
62c4753814
1 changed files with 2 additions and 1 deletions
|
|
@ -45,7 +45,8 @@ angular.element(document).ready(function() {
|
|||
|
||||
// Back button event
|
||||
document.addEventListener('backbutton', function() {
|
||||
if (window.location == 'x-wmapp0:www/index.html#/') {
|
||||
var loc = window.location;
|
||||
if (loc.toString().match(/index\.html#\/$/)) {
|
||||
navigator.app.exitApp();
|
||||
}
|
||||
else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue