aboutsummaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorkumavis <aaron@kumavis.me>2015-12-23 05:07:30 +0800
committerkumavis <aaron@kumavis.me>2015-12-23 05:07:30 +0800
commit709d93b5a194663506315d4e889191f252b07286 (patch)
tree4b0617f578b608ad867a2bf9d43d0f5a609c6688 /app
parent9f7b00f10a3fee94621c3f308d7c5693eb74e562 (diff)
downloadtangerine-wallet-browser-709d93b5a194663506315d4e889191f252b07286.tar
tangerine-wallet-browser-709d93b5a194663506315d4e889191f252b07286.tar.gz
tangerine-wallet-browser-709d93b5a194663506315d4e889191f252b07286.tar.bz2
tangerine-wallet-browser-709d93b5a194663506315d4e889191f252b07286.tar.lz
tangerine-wallet-browser-709d93b5a194663506315d4e889191f252b07286.tar.xz
tangerine-wallet-browser-709d93b5a194663506315d4e889191f252b07286.tar.zst
tangerine-wallet-browser-709d93b5a194663506315d4e889191f252b07286.zip
start of extension popup window
Diffstat (limited to 'app')
-rw-r--r--app/manifest.json3
-rw-r--r--app/popup.html24
-rw-r--r--app/scripts/background.js27
-rw-r--r--app/scripts/popup.js1
4 files changed, 49 insertions, 6 deletions
diff --git a/app/manifest.json b/app/manifest.json
index d760eea0f..5d1df7b54 100644
--- a/app/manifest.json
+++ b/app/manifest.json
@@ -19,7 +19,8 @@
"19": "images/icon-19.png",
"38": "images/icon-38.png"
},
- "default_title": "metamask"
+ "default_title": "MetaMask",
+ "default_popup": "popup.html"
},
"content_scripts": [
{
diff --git a/app/popup.html b/app/popup.html
new file mode 100644
index 000000000..b72d499d1
--- /dev/null
+++ b/app/popup.html
@@ -0,0 +1,24 @@
+<!doctype html>
+<html>
+ <head>
+ <meta charset="utf-8">
+ <title>Typo Blaster</title>
+ <style>
+ body {
+ min-width: 357px;
+ overflow-x: hidden;
+ }
+
+ img {
+ margin: 5px;
+ border: 2px solid black;
+ vertical-align: middle;
+ width: 75px;
+ height: 75px;
+ }
+ </style>
+ </head>
+ <body>
+ <script src="./scripts/popup.js" type="text/javascript" charset="utf-8"></script>
+ </body>
+</html> \ No newline at end of file
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)
diff --git a/app/scripts/popup.js b/app/scripts/popup.js
new file mode 100644
index 000000000..53dabeb33
--- /dev/null
+++ b/app/scripts/popup.js
@@ -0,0 +1 @@
+document.body.innerHTML = "real talk" \ No newline at end of file