Last active
August 28, 2016 15:27
-
-
Save t5r7/93b1054623e9e0b45f6ac34e0dd5a12e to your computer and use it in GitHub Desktop.
If visiting from file: change page title
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 (location.protocol == 'file:') { | |
document.title = 'your title'; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
okay...