by mathrawka · 14y ago · 0 comments
/**
* Sets a variable, given our current domain. If we're running on a dev
* environment, it stays out of the hash and falls to dev.
*/
mg_.env = {
'staging.mygengo.com': 'staging',
'qa.mygengo.com': 'qa',
'mygengo.com': 'production'
}[window.location.host];
if(typeof mg_.env === 'undefined') mg_.env = 'dev';