aboutsummaryrefslogtreecommitdiffstats
path: root/app/scripts/background.js
diff options
context:
space:
mode:
Diffstat (limited to 'app/scripts/background.js')
-rw-r--r--app/scripts/background.js27
1 files changed, 22 insertions, 5 deletions
diff --git a/app/scripts/background.js b/app/scripts/background.js
index 429f7fb3e..b880b1b8c 100644
--- a/app/scripts/background.js
+++ b/app/scripts/background.js
@@ -4,14 +4,31 @@ const identitiesUrl = 'https://alpha.metamask.io/identities/'
// var unsignedTxs = {}
-var zeroClient = ZeroClientProvider({
+var zeroClient = new ZeroClientProvider({
rpcUrl: 'https://rawrpc.metamask.io/',
})
-// setup badge click handler
-chrome.browserAction.onClicked.addListener(function(activeTab) {
- chrome.tabs.create({ url: identitiesUrl })
-})
+// // 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, ...
+// });
+// });
+// }
// setup messaging
chrome.runtime.onConnect.addListener(connectRemote)