mirror of
https://github.com/embarklabs/embark.git
synced 2025-01-09 13:26:10 +00:00
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:
parent
d2556af8ba
commit
41c943f052
@ -1,6 +1,6 @@
|
||||
/* global global require */
|
||||
|
||||
const Web3 = global.Web3 || require('web3');
|
||||
const Web3 = require('web3');
|
||||
const __embarkWeb3 = {};
|
||||
|
||||
__embarkWeb3.init = function(config) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user