mirror of https://github.com/dap-ps/discover.git
embark
This commit is contained in:
parent
191bea776e
commit
4c05bb23b8
|
@ -33,7 +33,8 @@
|
|||
"reselect": "^4.0.0",
|
||||
"web3-utils": "^1.0.0-beta.35",
|
||||
"webpack": "4.28.3",
|
||||
"idb": "4.0.3"
|
||||
"idb": "4.0.3",
|
||||
"web3":"1.0.0-beta.34"
|
||||
},
|
||||
"scripts": {
|
||||
"start": "react-scripts start",
|
||||
|
|
|
@ -31,15 +31,11 @@ const getInstance = async () => {
|
|||
}
|
||||
}
|
||||
|
||||
if (web3.currentProvider) {
|
||||
returnInstance()
|
||||
} else {
|
||||
EmbarkJS.onReady(err => {
|
||||
if (err) reject(err)
|
||||
EmbarkJS.onReady(err => {
|
||||
if (err) reject(err)
|
||||
|
||||
returnInstance()
|
||||
})
|
||||
}
|
||||
returnInstance()
|
||||
})
|
||||
})
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue