A fork of https://github.com/ueokande/vim-vixen
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
309 B
13 lines
309 B
6 years ago
|
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);
|
||
|
}
|
||
|
}
|