diff options
author | Frankie <frankie.pangilinan@consensys.net> | 2016-06-22 06:04:00 +0800 |
---|---|---|
committer | Frankie <frankie.pangilinan@consensys.net> | 2016-06-22 06:04:00 +0800 |
commit | cf663f1104697440121d32cc6db2a8a1d5d54c5a (patch) | |
tree | 3ed4b8b9fe8c85f3b3a5bf68482c3fb9967f2de5 /app/scripts/inpage.js | |
parent | 265725c6edd62a7f46a9b9cf5a443cf01f0ff00c (diff) | |
parent | dc2ef967028723afe9fe1efd669754723e38a4f0 (diff) | |
download | tangerine-wallet-browser-cf663f1104697440121d32cc6db2a8a1d5d54c5a.tar tangerine-wallet-browser-cf663f1104697440121d32cc6db2a8a1d5d54c5a.tar.gz tangerine-wallet-browser-cf663f1104697440121d32cc6db2a8a1d5d54c5a.tar.bz2 tangerine-wallet-browser-cf663f1104697440121d32cc6db2a8a1d5d54c5a.tar.lz tangerine-wallet-browser-cf663f1104697440121d32cc6db2a8a1d5d54c5a.tar.xz tangerine-wallet-browser-cf663f1104697440121d32cc6db2a8a1d5d54c5a.tar.zst tangerine-wallet-browser-cf663f1104697440121d32cc6db2a8a1d5d54c5a.zip |
Fix conflict
Diffstat (limited to 'app/scripts/inpage.js')
-rw-r--r-- | app/scripts/inpage.js | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/app/scripts/inpage.js b/app/scripts/inpage.js index b8532747e..e6f4078c8 100644 --- a/app/scripts/inpage.js +++ b/app/scripts/inpage.js @@ -8,7 +8,6 @@ restoreContextAfterImports() // remove from window delete window.Web3 - // // setup plugin communication // @@ -27,7 +26,7 @@ var inpageProvider = new MetamaskInpageProvider(metamaskStream) // var web3 = new Web3(inpageProvider) -web3.setProvider = function(){ +web3.setProvider = function () { console.log('MetaMask - overrode web3.setProvider') } console.log('MetaMask - injected web3') @@ -40,7 +39,7 @@ var reloadStream = inpageProvider.multiStream.createStream('reload') setupDappAutoReload(web3, reloadStream) // set web3 defaultAcount -inpageProvider.publicConfigStore.subscribe(function(state){ +inpageProvider.publicConfigStore.subscribe(function (state) { web3.eth.defaultAccount = state.selectedAddress }) @@ -51,13 +50,13 @@ inpageProvider.publicConfigStore.subscribe(function(state){ // need to make sure we aren't affected by overlapping namespaces // and that we dont affect the app with our namespace // mostly a fix for web3's BigNumber if AMD's "define" is defined... -var __define = undefined +var __define -function cleanContextForImports(){ +function cleanContextForImports () { __define = global.define delete global.define } -function restoreContextAfterImports(){ +function restoreContextAfterImports () { global.define = __define } |