From 95cf7a784f2212d21f9808d4cde43476b349e89e Mon Sep 17 00:00:00 2001
From: Alex Yatskov
Date: Wed, 1 Mar 2017 20:49:46 -0800
Subject: wip on browser action button
---
ext/bg/js/yomichan.js | 7 -------
ext/bg/popup.html | 34 ++++++++++++++++++++++++++++++++++
2 files changed, 34 insertions(+), 7 deletions(-)
create mode 100644 ext/bg/popup.html
(limited to 'ext/bg')
diff --git a/ext/bg/js/yomichan.js b/ext/bg/js/yomichan.js
index b1bf710f..d7d2317f 100644
--- a/ext/bg/js/yomichan.js
+++ b/ext/bg/js/yomichan.js
@@ -29,7 +29,6 @@ class Yomichan {
chrome.runtime.onMessage.addListener(this.onMessage.bind(this));
chrome.runtime.onInstalled.addListener(this.onInstalled.bind(this));
- chrome.browserAction.onClicked.addListener(e => chrome.runtime.openOptionsPage());
this.translator.prepare().then(optionsLoad).then(this.setOptions.bind(this));
}
@@ -51,12 +50,6 @@ class Yomichan {
return true;
}
- // setEnabled(enabled) {
- // this.enabled = enabled;
- // this.tabInvokeAll('setEnabled', this.enabled);
- // chrome.browserAction.setBadgeText({text: enabled ? '' : 'off'});
- // }
-
setOptions(options) {
this.options = options;
diff --git a/ext/bg/popup.html b/ext/bg/popup.html
new file mode 100644
index 00000000..ad66c374
--- /dev/null
+++ b/ext/bg/popup.html
@@ -0,0 +1,34 @@
+
+
+
+
+ Welcome to Yomichan!
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
--
cgit v1.2.3