Created
April 18, 2011 19:33
-
-
Save beckje01/926010 to your computer and use it in GitHub Desktop.
Check for Address Bar in iOS
This file contains 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
if(window.navigator.standalone) | |
{//This page is currently standalone | |
console.log("stand alone"); | |
} | |
if(!("standalone" in window.navigator)) | |
{//This Page is shown in a browser that can't | |
console.log("can't do standalone"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment