Skip to content

Instantly share code, notes, and snippets.

@liketaurus
Last active March 12, 2016 08:09
Show Gist options
  • Save liketaurus/16ec6d8918a4666bd904 to your computer and use it in GitHub Desktop.
Save liketaurus/16ec6d8918a4666bd904 to your computer and use it in GitHub Desktop.
Getting jQuery Mobile to work in packed Chrome app
//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