Created
January 10, 2014 12:04
-
-
Save toddmotto/8350837 to your computer and use it in GitHub Desktop.
Conditionizr test for localhost, add optional port number: /(?:127.0.0.1|localhost):9000/
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
conditionizr.add('localhost', [], function () { | |
return /(?:127.0.0.1|localhost)/.test(location.host); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment