Created
March 11, 2015 17:53
-
-
Save lancevo/66a65b98eb3e13bf3ce7 to your computer and use it in GitHub Desktop.
check to see if the webpage open from iOS home screen (web app)
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 standaloneMode = window.navigator.userAgent.indexOf('iPhone') != -1 && window.navigator.standalone == true; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment