diff options
author | Alex Yatskov <alex@foosoft.net> | 2017-03-01 20:49:46 -0800 |
---|---|---|
committer | Alex Yatskov <alex@foosoft.net> | 2017-03-01 20:49:46 -0800 |
commit | 95cf7a784f2212d21f9808d4cde43476b349e89e (patch) | |
tree | 693d969458eeebbe55bd85ad3a2d3fa8e37bd186 /ext/bg/js | |
parent | 4c0ed9c2922dbd82cae8e844fa33bbc3d96a6cf4 (diff) |
wip on browser action button
Diffstat (limited to 'ext/bg/js')
-rw-r--r-- | ext/bg/js/yomichan.js | 7 |
1 files changed, 0 insertions, 7 deletions
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; |