blob: afb9fa41b577824aeff1b4ccaeca847e9e4993b7 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
import * as messages from '../../shared/messages';
export default interface AddonIndicatorClient {
setEnabled(enabled: boolean): Promise<void>;
// eslint-disable-next-line semi
}
export class AddonIndicatorClientImpl implements AddonIndicatorClient {
setEnabled(enabled: boolean): Promise<void> {
return browser.runtime.sendMessage({
type: messages.ADDON_ENABLED_RESPONSE,
enabled,
});
}
}
|