Skip to content

Instantly share code, notes, and snippets.

@braders
Created January 24, 2014 14:45
Show Gist options
  • Save braders/8598610 to your computer and use it in GitHub Desktop.
Save braders/8598610 to your computer and use it in GitHub Desktop.
Add (testing) to title of local hostname.
if (window.location.hostname == "localhost" || window.location.hostname == "127.0.0.1"){
document.title = document.title + " (testing)";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment