diff options
author | Steve Klebanoff <steve.klebanoff@gmail.com> | 2018-11-17 02:26:01 +0800 |
---|---|---|
committer | Steve Klebanoff <steve.klebanoff@gmail.com> | 2018-11-17 02:26:01 +0800 |
commit | 9c182fe6e41f47e6f1eac2fbc7158f9143e406c4 (patch) | |
tree | ad12ac3206d2ece4a1c778c59ce6a5de1b81aa38 /packages/website/ts/blockchain.ts | |
parent | cbcb954c3015b7044e0c1f1b594103df8ea4dfa7 (diff) | |
parent | 1626e284cd6488663ad1be03f0d8f72afced7afb (diff) | |
download | dexon-sol-tools-9c182fe6e41f47e6f1eac2fbc7158f9143e406c4.tar dexon-sol-tools-9c182fe6e41f47e6f1eac2fbc7158f9143e406c4.tar.gz dexon-sol-tools-9c182fe6e41f47e6f1eac2fbc7158f9143e406c4.tar.bz2 dexon-sol-tools-9c182fe6e41f47e6f1eac2fbc7158f9143e406c4.tar.lz dexon-sol-tools-9c182fe6e41f47e6f1eac2fbc7158f9143e406c4.tar.xz dexon-sol-tools-9c182fe6e41f47e6f1eac2fbc7158f9143e406c4.tar.zst dexon-sol-tools-9c182fe6e41f47e6f1eac2fbc7158f9143e406c4.zip |
Merge branch 'development' into feature/instant/heap
Diffstat (limited to 'packages/website/ts/blockchain.ts')
-rw-r--r-- | packages/website/ts/blockchain.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/website/ts/blockchain.ts b/packages/website/ts/blockchain.ts index 25430c1c7..37f746f7c 100644 --- a/packages/website/ts/blockchain.ts +++ b/packages/website/ts/blockchain.ts @@ -591,7 +591,7 @@ export class Blockchain { } } else { const injectedWeb3IfExists = (window as any).web3; - if (!_.isUndefined(injectedWeb3IfExists.currentProvider)) { + if (!_.isUndefined(injectedWeb3IfExists) && !_.isUndefined(injectedWeb3IfExists.currentProvider)) { injectedProviderIfExists = injectedWeb3IfExists.currentProvider; } else { return undefined; |