aboutsummaryrefslogtreecommitdiffstats
path: root/app/scripts/background.js
diff options
context:
space:
mode:
authorkumavis <aaron@kumavis.me>2016-01-15 10:26:54 +0800
committerkumavis <aaron@kumavis.me>2016-01-15 10:26:54 +0800
commit3eaf027e30a3a28d75fb8f93cd30387a777c5814 (patch)
tree965d43cba0cf79b64b62fd19faaffb813e281855 /app/scripts/background.js
parent709d93b5a194663506315d4e889191f252b07286 (diff)
downloadtangerine-wallet-browser-3eaf027e30a3a28d75fb8f93cd30387a777c5814.tar
tangerine-wallet-browser-3eaf027e30a3a28d75fb8f93cd30387a777c5814.tar.gz
tangerine-wallet-browser-3eaf027e30a3a28d75fb8f93cd30387a777c5814.tar.bz2
tangerine-wallet-browser-3eaf027e30a3a28d75fb8f93cd30387a777c5814.tar.lz
tangerine-wallet-browser-3eaf027e30a3a28d75fb8f93cd30387a777c5814.tar.xz
tangerine-wallet-browser-3eaf027e30a3a28d75fb8f93cd30387a777c5814.tar.zst
tangerine-wallet-browser-3eaf027e30a3a28d75fb8f93cd30387a777c5814.zip
migrate to new ui + provider
Diffstat (limited to 'app/scripts/background.js')
-rw-r--r--app/scripts/background.js28
1 files changed, 2 insertions, 26 deletions
diff --git a/app/scripts/background.js b/app/scripts/background.js
index b880b1b8c..7ddd258e2 100644
--- a/app/scripts/background.js
+++ b/app/scripts/background.js
@@ -1,34 +1,10 @@
-const ZeroClientProvider = require('web3-provider-engine')
+const MetaMaskProvider = require('./lib/metamask-provider')
// const PortStream = require('./lib/port-stream.js')
const identitiesUrl = 'https://alpha.metamask.io/identities/'
// var unsignedTxs = {}
-var zeroClient = new ZeroClientProvider({
- rpcUrl: 'https://rawrpc.metamask.io/',
-})
-
-// // setup badge click handler
-// chrome.browserAction.onClicked.addListener(function(activeTab) {
-// // chrome.tabs.create({ url: identitiesUrl })
-// tabbernackle()
-// })
-
-
-// function tabbernackle(){
-// chrome.tabs.create({
-// url: 'about:blank',//chrome.extension.getURL('dialog.html'),
-// active: false
-// }, function(tab) {
-// // After the tab has been created, open a window to inject the tab
-// chrome.windows.create({
-// tabId: tab.id,
-// type: 'panel',
-// focused: true
-// // incognito, top, left, ...
-// });
-// });
-// }
+var zeroClient = MetaMaskProvider()
// setup messaging
chrome.runtime.onConnect.addListener(connectRemote)