mirror of
https://github.com/status-im/embark-area-51.git
synced 2025-01-11 14:34:40 +00:00
make Web3 (note capital 'w') globally accessible
This commit is contained in:
parent
0c4438941d
commit
dcf9b4a645
@ -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…
x
Reference in New Issue
Block a user