Skip to content

Instantly share code, notes, and snippets.

@mikegrassotti
Last active August 29, 2015 14:06
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 mikegrassotti/fbfacbbad9dd5b384144 to your computer and use it in GitHub Desktop.
Save mikegrassotti/fbfacbbad9dd5b384144 to your computer and use it in GitHub Desktop.
Parse ember-cli config/env using pure-javascript so it can be accessed before loading vendor libs
var env = function(namespace) {
return JSON.parse(unescape(document.getElementsByName(namespace + "/config/environment")[0].getAttribute("content")));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment