Created
March 10, 2012 19:41
-
-
Save ackernaut/2012646 to your computer and use it in GitHub Desktop.
JS: iOS app mode disabled
This file contains hidden or 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
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