mirror of
https://github.com/embarklabs/embark.git
synced 2025-01-11 14:24:24 +00:00
fix(code-generator): use isDev instead of checking env
This commit is contained in:
parent
1e4eaa5fb6
commit
540ff751a9
@ -120,7 +120,7 @@ class CodeGenerator {
|
||||
web3Load = Templates.define_web3_simple({url: connection, done: 'done();'});
|
||||
} else {
|
||||
let connectionList = "[" + this.contractsConfig.dappConnection.map((x) => '"' + x + '"').join(',') + "]";
|
||||
let isDev = (self.env === 'development');
|
||||
let isDev = self.blockchainConfig.isDev;
|
||||
web3Load = Templates.web3_connector({
|
||||
autoEnable: this.contractsConfig.dappAutoEnable,
|
||||
connectionList: connectionList,
|
||||
|
Loading…
x
Reference in New Issue
Block a user