mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
reload the page when switching networks
This commit is contained in:
parent
4941b5ab11
commit
a0a19468a8
@ -1,6 +1,6 @@
|
|||||||
const Web3 = require('web3')
|
const Web3 = require('web3')
|
||||||
const setupProvider = require('./lib/setup-provider.js')
|
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'
|
const MASCARA_ORIGIN = process.env.MASCARA_ORIGIN || 'http://localhost:9001'
|
||||||
console.log('MASCARA_ORIGIN:', MASCARA_ORIGIN)
|
console.log('MASCARA_ORIGIN:', MASCARA_ORIGIN)
|
||||||
|
|
||||||
@ -14,8 +14,7 @@ const provider = setupProvider({
|
|||||||
instrumentForUserInteractionTriggers(provider)
|
instrumentForUserInteractionTriggers(provider)
|
||||||
|
|
||||||
const web3 = new Web3(provider)
|
const web3 = new Web3(provider)
|
||||||
global.web3 = web3
|
setupDappAutoReload(web3, provider.publicConfigStore)
|
||||||
|
|
||||||
//
|
//
|
||||||
// ui stuff
|
// ui stuff
|
||||||
//
|
//
|
||||||
|
Loading…
Reference in New Issue
Block a user