diff --git a/js/embark.js b/js/embark.js index 06817208f..86d31a041 100644 --- a/js/embark.js +++ b/js/embark.js @@ -26,7 +26,7 @@ EmbarkJS.Contract = function(options) { this.code = '0x' + options.code; //this.web3 = options.web3 || web3; this.web3 = options.web3; - if (!this.web3 && typeof ('web3') !== 'undefined') { + if (!this.web3 && typeof (web3) !== 'undefined') { this.web3 = web3; } else if (!this.web3) { this.web3 = window.web3; diff --git a/js/embark_node.js b/js/embark_node.js index bfcda6da3..9e9ea8b70 100644 --- a/js/embark_node.js +++ b/js/embark_node.js @@ -26,7 +26,7 @@ EmbarkJS.Contract = function(options) { this.code = '0x' + options.code; //this.web3 = options.web3 || web3; this.web3 = options.web3; - if (!this.web3 && typeof ('web3') !== 'undefined') { + if (!this.web3 && typeof (web3) !== 'undefined') { this.web3 = web3; } else if (!this.web3) { this.web3 = window.web3;