Skip to content

Commit

Permalink
Base: Fix Chrome no longer allowing the app to run locally
Browse files Browse the repository at this point in the history
  • Loading branch information
salbahra committed Sep 1, 2015
1 parent a732ccb commit 788a34b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions www/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ $( document )
.one( "mobileinit", function() {

//Change history method for Chrome Packaged Apps
if ( isChromeApp ) {
if ( isChromeApp || window.location.protocol === "file:" ) {
$.mobile.hashListeningEnabled = false;
}
} )
Expand Down Expand Up @@ -10985,7 +10985,7 @@ function goBack() {
navigator.app.exitApp();
} catch ( err ) {}
} else {
if ( isChromeApp ) {
if ( isChromeApp || window.location.protocol === "file:" ) {
var url = $.mobile.navigate.history.getPrev().url;

if ( url.slice( 0, 1 ) !== "#" ) {
Expand Down

0 comments on commit 788a34b

Please sign in to comment.