Skip to content

Instantly share code, notes, and snippets.

@rogeruiz
Created April 5, 2012 19:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rogeruiz/2313273 to your computer and use it in GitHub Desktop.
Save rogeruiz/2313273 to your computer and use it in GitHub Desktop.
Debug Mode Activate!
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;
}
@rogeruiz
Copy link
Author

rogeruiz commented Apr 5, 2012

works with single char and double char sub domains, enjoy it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment