Fix back button

This commit is contained in:
Gustavo Maximiliano Cortez 2015-04-20 12:48:01 -03:00
commit 62c4753814

View file

@ -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 {