aboutsummaryrefslogtreecommitdiff
path: root/src/content/repositories/AddonEnabledRepository.ts
blob: 4eaabb170b6ecf0dee4c61807661dd24da540956 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
let enabled: boolean = false;

export default interface AddonEnabledRepository {
  set(on: boolean): void;

  get(): boolean;

  // eslint-disable-next-line semi
}

export class AddonEnabledRepositoryImpl implements AddonEnabledRepository {
  set(on: boolean): void {
    enabled = on;
  }

  get(): boolean {
    return enabled;
  }
}