Skip to content

Instantly share code, notes, and snippets.

@xavez
Created February 27, 2015 16:18
Show Gist options
  • Save xavez/4709cf3305b79d2d3f09 to your computer and use it in GitHub Desktop.
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
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