Rename .js/.jsx to .ts/.tsx
This commit is contained in:
parent
257162e5b6
commit
c60d0e7392
151 changed files with 0 additions and 0 deletions
12
src/background/presenters/IndicatorPresenter.ts
Normal file
12
src/background/presenters/IndicatorPresenter.ts
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