Skip to content

Instantly share code, notes, and snippets.

@ackernaut
Created March 10, 2012 19:41
Show Gist options
  • Save ackernaut/2012646 to your computer and use it in GitHub Desktop.
Save ackernaut/2012646 to your computer and use it in GitHub Desktop.
JS: iOS app mode disabled
var htmlAttr = document.documentElement;
// Check if app mode is enabled, but not being used
if (("standalone" in window.navigator) && !window.navigator.standalone) {
$(htmlAttr).addClass('ios-app-mode-disabled');
}
// Thanks, Ben! http://bit.ly/95VUOP
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment