Created
February 27, 2015 16:18
-
-
Save xavez/4709cf3305b79d2d3f09 to your computer and use it in GitHub Desktop.
Full-screen web-apps in iOS8 need some hackery to have a transparent navbar that displays black text on your app’s light background
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 (('standalone' in window.navigator) && window.navigator.standalone) | |
{document.write('<meta name="apple-mobile-web-app-status-bar-style" content="default">');} | |
else | |
{document.write('<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">');} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment