aboutsummaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorkumavis <aaron@kumavis.me>2016-03-06 07:03:43 +0800
committerkumavis <aaron@kumavis.me>2016-03-06 07:03:43 +0800
commit1c8049520d0a3c469840601cb2fe6608c2e84f4e (patch)
treecec92a303efb499994949a0e1e2dd207705e2a81 /app
parentcbde4157aaab8fec46b2e87206360adfc7e91fbc (diff)
downloadtangerine-wallet-browser-1c8049520d0a3c469840601cb2fe6608c2e84f4e.tar
tangerine-wallet-browser-1c8049520d0a3c469840601cb2fe6608c2e84f4e.tar.gz
tangerine-wallet-browser-1c8049520d0a3c469840601cb2fe6608c2e84f4e.tar.bz2
tangerine-wallet-browser-1c8049520d0a3c469840601cb2fe6608c2e84f4e.tar.lz
tangerine-wallet-browser-1c8049520d0a3c469840601cb2fe6608c2e84f4e.tar.xz
tangerine-wallet-browser-1c8049520d0a3c469840601cb2fe6608c2e84f4e.tar.zst
tangerine-wallet-browser-1c8049520d0a3c469840601cb2fe6608c2e84f4e.zip
inpage - web3 class injection
Diffstat (limited to 'app')
-rw-r--r--app/scripts/inpage.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/app/scripts/inpage.js b/app/scripts/inpage.js
index c2c3da06a..c46d0b213 100644
--- a/app/scripts/inpage.js
+++ b/app/scripts/inpage.js
@@ -1,7 +1,12 @@
const XHR = window.XMLHttpRequest
// const fauxJax = require('faux-jax')
// fauxJax.install()
+
+// bring in web3 but rename on window
const Web3 = require('web3')
+delete window.Web3
+window.MetamaskWeb3 = Web3
+
const createPayload = require('web3-provider-engine/util/create-payload')
const StreamProvider = require('./lib/stream-provider.js')
const LocalMessageDuplexStream = require('./lib/local-message-stream.js')