Last active
August 29, 2015 14:06
-
-
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
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
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