Last active
March 12, 2016 08:09
-
-
Save liketaurus/16ec6d8918a4666bd904 to your computer and use it in GitHub Desktop.
Getting jQuery Mobile to work in packed Chrome app
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//to avoid "Uncaught SecurityError: Failed to execute 'replaceState' on 'History'" in Chrome app (local file) | |
//just comment out the following line in jQuery Mobile | |
window.history.replaceState( state, state.title || document.title, href ); | |
//that the bad and ugly solution, but it works:-) | |
//adding "-allow-file-access-from-files" as Chrome command line argument is not a case for me |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment