fix(code-generator): use isDev instead of checking env

This commit is contained in:
Jonathan Rainville 2019-01-11 15:51:01 -05:00 committed by Pascal Precht
parent 1e4eaa5fb6
commit 540ff751a9

View File

@ -120,7 +120,7 @@ class CodeGenerator {
web3Load = Templates.define_web3_simple({url: connection, done: 'done();'}); web3Load = Templates.define_web3_simple({url: connection, done: 'done();'});
} else { } else {
let connectionList = "[" + this.contractsConfig.dappConnection.map((x) => '"' + x + '"').join(',') + "]"; let connectionList = "[" + this.contractsConfig.dappConnection.map((x) => '"' + x + '"').join(',') + "]";
let isDev = (self.env === 'development'); let isDev = self.blockchainConfig.isDev;
web3Load = Templates.web3_connector({ web3Load = Templates.web3_connector({
autoEnable: this.contractsConfig.dappAutoEnable, autoEnable: this.contractsConfig.dappAutoEnable,
connectionList: connectionList, connectionList: connectionList,