mirror of
https://github.com/embarklabs/EmbarkJS.git
synced 2025-02-19 23:58:16 +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) => {
|
const connectWeb3 = async (next) => {
|
||||||
if (ethereum) {
|
if (window.ethereum) {
|
||||||
try {
|
try {
|
||||||
await ethereum.enable();
|
await ethereum.enable();
|
||||||
web3.setProvider(ethereum);
|
web3.setProvider(ethereum);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user