Skip to content

Instantly share code, notes, and snippets.

@kamaroly
Created November 8, 2016 13:17
Show Gist options
  • Save kamaroly/c6f493210df87a78a03b673170aa7d26 to your computer and use it in GitHub Desktop.
Save kamaroly/c6f493210df87a78a03b673170aa7d26 to your computer and use it in GitHub Desktop.
/////////////////////////////////////////////////////////////////////////
// IF WE HAVE TOOBAR AND MENUBAR WE ASSUME THIS IS NOT FROM MOBILE APP //
/////////////////////////////////////////////////////////////////////////
if (window.toolbar.visible && window.menubar.visible) {
var appIcon = window.document.getElementById('app-icon');
appIcon.style.display = "block";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment