Created
April 5, 2012 19:04
-
-
Save rogeruiz/2313273 to your computer and use it in GitHub Desktop.
Debug Mode Activate!
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
switch (window.location.href.indexOf('rokkan')){ | |
case 20: | |
case 22: | |
case 23: | |
window.Project.debug = true; | |
if (window.console) { console.warn('Debug Mode: Activated.'); } | |
break; | |
default: | |
window.Project.debug = false; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
works with single char and double char sub domains, enjoy it.