Skip to content

Instantly share code, notes, and snippets.

@niraj-shah
Last active December 4, 2015 14:01
Show Gist options
  • Save niraj-shah/dbc2b28630d5538eebbd to your computer and use it in GitHub Desktop.
Save niraj-shah/dbc2b28630d5538eebbd to your computer and use it in GitHub Desktop.
jQuery Mobile iOS 9.x fix for Cordova / Trigger.io
if ( device.platform == 'iOS' && parseFloat( device.version ) >= 9 ) {
// fix for iOS 9 only or it will break Android
$.mobile.hashListeningEnabled = true;
$.mobile.pushStateEnabled = false;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment