Correct inpage to be not modified

feature/default_network_editable
Dan Finlay 8 years ago
parent 7cd42ae9ba
commit 1dfc0f74bf
  1. 4
      app/scripts/inpage.js

@ -1,6 +1,6 @@
/*global Web3*/ /*global Web3*/
cleanContextForImports() cleanContextForImports()
require('web3') require('web3/dist/web3.min.js')
const LocalMessageDuplexStream = require('post-message-stream') const LocalMessageDuplexStream = require('post-message-stream')
// const PingStream = require('ping-pong-stream/ping') // const PingStream = require('ping-pong-stream/ping')
// const endOfStream = require('end-of-stream') // const endOfStream = require('end-of-stream')
@ -30,7 +30,7 @@ var web3 = new Web3(inpageProvider)
web3.setProvider = function () { web3.setProvider = function () {
console.log('MetaMask - overrode web3.setProvider') console.log('MetaMask - overrode web3.setProvider')
} }
console.log('MetaMask - injected modified web3') console.log('MetaMask - injected web3')
// export global web3, with usage-detection // export global web3, with usage-detection
setupDappAutoReload(web3, inpageProvider.publicConfigStore) setupDappAutoReload(web3, inpageProvider.publicConfigStore)

Loading…
Cancel
Save