Indicator shows the add-on enabled
This commit is contained in:
parent
2c366ac3b1
commit
129aae38df
9 changed files with 86 additions and 3 deletions
13
src/background/shared/indicators.js
Normal file
13
src/background/shared/indicators.js
Normal file
|
@ -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 };
|
Reference in a new issue