1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00

Correct inpage to be not modified

This commit is contained in:
Dan Finlay 2017-05-26 00:50:27 -07:00
parent 7cd42ae9ba
commit 1dfc0f74bf

View File

@ -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)