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 ------- 1 file changed, 7 deletions(-) (limited to 'ext/bg/js') 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; -- cgit v1.2.3