diff options
author | frankiebee <frankie.diamond@gmail.com> | 2017-06-09 08:34:51 +0800 |
---|---|---|
committer | frankiebee <frankie.diamond@gmail.com> | 2017-06-09 08:34:51 +0800 |
commit | a0a19468a805994f3897a63489c344e5f3f89dc9 (patch) | |
tree | 0c8d4e0e00c247d1900043f1f3657fc8f90b43bd | |
parent | 4941b5ab118e4ab99ae94b2a714c7fceab24adcf (diff) | |
download | tangerine-wallet-browser-a0a19468a805994f3897a63489c344e5f3f89dc9.tar tangerine-wallet-browser-a0a19468a805994f3897a63489c344e5f3f89dc9.tar.gz tangerine-wallet-browser-a0a19468a805994f3897a63489c344e5f3f89dc9.tar.bz2 tangerine-wallet-browser-a0a19468a805994f3897a63489c344e5f3f89dc9.tar.lz tangerine-wallet-browser-a0a19468a805994f3897a63489c344e5f3f89dc9.tar.xz tangerine-wallet-browser-a0a19468a805994f3897a63489c344e5f3f89dc9.tar.zst tangerine-wallet-browser-a0a19468a805994f3897a63489c344e5f3f89dc9.zip |
reload the page when switching networks
-rw-r--r-- | mascara/src/mascara.js | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/mascara/src/mascara.js b/mascara/src/mascara.js index 0fc2868e1..1655d1f64 100644 --- a/mascara/src/mascara.js +++ b/mascara/src/mascara.js @@ -1,6 +1,6 @@ const Web3 = require('web3') const setupProvider = require('./lib/setup-provider.js') - +const setupDappAutoReload = require('../../app/scripts/lib/auto-reload.js') const MASCARA_ORIGIN = process.env.MASCARA_ORIGIN || 'http://localhost:9001' console.log('MASCARA_ORIGIN:', MASCARA_ORIGIN) @@ -14,8 +14,7 @@ const provider = setupProvider({ instrumentForUserInteractionTriggers(provider) const web3 = new Web3(provider) -global.web3 = web3 - +setupDappAutoReload(web3, provider.publicConfigStore) // // ui stuff // |