Capitalize background scripts
This commit is contained in:
parent
21788740c1
commit
a26d8a8a1b
50 changed files with 247 additions and 245 deletions
12
src/background/presenters/IndicatorPresenter.js
Normal file
12
src/background/presenters/IndicatorPresenter.js
Normal file
|
@ -0,0 +1,12 @@
|
|||
export default class IndicatorPresenter {
|
||||
indicate(enabled) {
|
||||
let path = enabled
|
||||
? 'resources/enabled_32x32.png'
|
||||
: 'resources/disabled_32x32.png';
|
||||
return browser.browserAction.setIcon({ path });
|
||||
}
|
||||
|
||||
onClick(listener) {
|
||||
browser.browserAction.onClicked.addListener(listener);
|
||||
}
|
||||
}
|
Reference in a new issue