diff --git a/src/App.vue b/src/App.vue index 38aa3f9..50e9a68 100644 --- a/src/App.vue +++ b/src/App.vue @@ -15,7 +15,7 @@ limitations under the License. --> @@ -178,7 +178,7 @@ export default { }, data() { return { - hasWeb3: false, + inited: false, isShowDeposit: false, isShowExit: false, isShowTransfer: false, @@ -211,14 +211,7 @@ export default { try { await pify(EmbarkJS.onReady)(); - await EmbarkJS.Plasma.init(web3); - - this.hasWeb3 = - EmbarkJS.Plasma.web3 && - ((EmbarkJS.Plasma.web3.currentProvider && - EmbarkJS.Plasma.web3.currentProvider.isMetaMask) || - (EmbarkJS.Plasma.web3.givenProvider && - EmbarkJS.Plasma.web3.givenProvider.isMetaMask)); + await EmbarkJS.Plasma.init(web3, false); const { rootChain, @@ -228,6 +221,7 @@ export default { this.rootChain = rootChain; this.childChain = childChain; this.plasmaContractAddress = plasmaContractAddress; + this.inited = true; this.refresh(); } catch (err) {