From ec94088530734dac82bcfeb4de7ba4467b4b1a6c Mon Sep 17 00:00:00 2001 From: Anthony Laibe Date: Thu, 1 Nov 2018 11:45:09 +0100 Subject: [PATCH] Use window for check --- src/blockchain.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/blockchain.js b/src/blockchain.js index 359a0d6..ca6e480 100644 --- a/src/blockchain.js +++ b/src/blockchain.js @@ -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);