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