bugfix (@embark/embarkjs): fix required Web3 object so it can support brave and other browser not injecting a Web3 object with websockets (#2036)

This commit is contained in:
Iuri Matias 2019-11-11 13:59:56 -05:00 committed by GitHub
parent d2556af8ba
commit 41c943f052
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,6 +1,6 @@
/* global global require */
const Web3 = global.Web3 || require('web3');
const Web3 = require('web3');
const __embarkWeb3 = {};
__embarkWeb3.init = function(config) {