Created
August 28, 2017 19:37
-
-
Save johnbocook/7b558bedaac6f2a024284b7cb45d2c08 to your computer and use it in GitHub Desktop.
Javascript, check if localhost
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
var isLocal = location.host.includes('localhost'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment