aboutsummaryrefslogtreecommitdiff
path: root/src/background/shared
diff options
context:
space:
mode:
authorShin'ya Ueoka <ueokande@i-beam.org>2018-05-06 22:30:04 +0900
committerShin'ya Ueoka <ueokande@i-beam.org>2018-05-06 22:30:04 +0900
commit129aae38df1a17a5850898d5832bb8112ead3cbb (patch)
tree30e939b45a1c8a7902e979a03dcd650375ae3dc6 /src/background/shared
parent2c366ac3b1d7114869567845c955238e96056565 (diff)
Indicator shows the add-on enabled
Diffstat (limited to 'src/background/shared')
-rw-r--r--src/background/shared/indicators.js13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/background/shared/indicators.js b/src/background/shared/indicators.js
new file mode 100644
index 0000000..74002c4
--- /dev/null
+++ b/src/background/shared/indicators.js
@@ -0,0 +1,13 @@
+const enable = () => {
+ return browser.browserAction.setIcon({
+ path: 'resources/enabled_32x32.png',
+ });
+};
+
+const disable = () => {
+ return browser.browserAction.setIcon({
+ path: 'resources/disabled_32x32.png',
+ });
+};
+
+export { enable, disable };