mirror of
https://github.com/status-im/embark-area-51.git
synced 2025-02-18 10:16:30 +00:00
fix checking web3
This commit is contained in:
parent
57ef573142
commit
5f8f7f35ac
@ -26,7 +26,7 @@ EmbarkJS.Contract = function(options) {
|
|||||||
this.code = '0x' + options.code;
|
this.code = '0x' + options.code;
|
||||||
//this.web3 = options.web3 || web3;
|
//this.web3 = options.web3 || web3;
|
||||||
this.web3 = options.web3;
|
this.web3 = options.web3;
|
||||||
if (!this.web3 && typeof ('web3') !== 'undefined') {
|
if (!this.web3 && typeof (web3) !== 'undefined') {
|
||||||
this.web3 = web3;
|
this.web3 = web3;
|
||||||
} else if (!this.web3) {
|
} else if (!this.web3) {
|
||||||
this.web3 = window.web3;
|
this.web3 = window.web3;
|
||||||
|
@ -26,7 +26,7 @@ EmbarkJS.Contract = function(options) {
|
|||||||
this.code = '0x' + options.code;
|
this.code = '0x' + options.code;
|
||||||
//this.web3 = options.web3 || web3;
|
//this.web3 = options.web3 || web3;
|
||||||
this.web3 = options.web3;
|
this.web3 = options.web3;
|
||||||
if (!this.web3 && typeof ('web3') !== 'undefined') {
|
if (!this.web3 && typeof (web3) !== 'undefined') {
|
||||||
this.web3 = web3;
|
this.web3 = web3;
|
||||||
} else if (!this.web3) {
|
} else if (!this.web3) {
|
||||||
this.web3 = window.web3;
|
this.web3 = window.web3;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user