1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-22 01:47:00 +01:00

logging - add localhost interception message

This commit is contained in:
kumavis 2016-02-15 11:02:41 -08:00
parent eae4c25d95
commit 519d4b1192

View File

@ -86,15 +86,18 @@ remoteProvider.send = function(payload){
var web3 = new Web3(remoteProvider)
window.web3 = web3
web3.setProvider = function(){
console.log('MetaMask Extension - overrode web3.setProvider')
console.log('MetaMask - overrode web3.setProvider')
}
console.log('MetaMask Extension - injected web3')
console.log('MetaMask - injected web3')
//
// intercept local node requests
//
console.log('MetaMask - intercepting localhost:8545 requests')
fauxJax.on('request', function(req){
// check if local node request
if (req.requestURL.indexOf('localhost:8545') !== -1) {