mirror of https://github.com/embarklabs/embark.git
Add environment to EmbarkJS
This commit is contained in:
parent
21b4cbf60d
commit
38817ddab2
|
@ -139,7 +139,7 @@ class CodeGenerator {
|
||||||
web3Load = Templates.web3_connector({connectionList: connectionList, done: 'done(err);', warnAboutMetamask: isDev});
|
web3Load = Templates.web3_connector({connectionList: connectionList, done: 'done(err);', warnAboutMetamask: isDev});
|
||||||
}
|
}
|
||||||
|
|
||||||
result += Templates.do_when_loaded({block: web3Load});
|
result += Templates.do_when_loaded({block: web3Load, environment: this.env});
|
||||||
}
|
}
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
|
|
|
@ -1,6 +1,8 @@
|
||||||
whenEnvIsLoaded(function(){
|
whenEnvIsLoaded(function(){
|
||||||
__mainContext.__loadManagerInstance.doFirst(function(done) {
|
__mainContext.__loadManagerInstance.doFirst(function(done) {
|
||||||
<%- block %>
|
<%- block %>
|
||||||
})
|
});
|
||||||
|
|
||||||
|
EmbarkJS.environment = "<%- environment %>";
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue