mirror of https://github.com/embarklabs/embark.git
make Web3 (note capital 'w') globally accessible
This commit is contained in:
parent
dc50ea864e
commit
207f3ffe93
|
@ -374,6 +374,7 @@ class CodeGenerator {
|
|||
let providerCode = self.generateProvider(false);
|
||||
code += providerCode;
|
||||
code += "\nglobal.__embarkContext = __mainContext.__loadManagerInstance;\n";
|
||||
code += "\nwindow.Web3 = Web3;\n";
|
||||
code += "\nwindow.web3 = web3;\n";
|
||||
code += "\nexport default web3;\n";
|
||||
next(null, code);
|
||||
|
|
Loading…
Reference in New Issue