mirror of
https://github.com/embarklabs/EmbarkJS.git
synced 2025-02-17 06:47:34 +00:00
Use window for check
This commit is contained in:
parent
103a78fa43
commit
ec94088530
@ -30,7 +30,7 @@ Blockchain.connect = function(connectionList, opts, doneCb) {
|
||||
}
|
||||
|
||||
const connectWeb3 = async (next) => {
|
||||
if (ethereum) {
|
||||
if (window.ethereum) {
|
||||
try {
|
||||
await ethereum.enable();
|
||||
web3.setProvider(ethereum);
|
||||
|
Loading…
x
Reference in New Issue
Block a user