aboutsummaryrefslogtreecommitdiff
path: root/src/background/controllers/AddonEnabledController.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/background/controllers/AddonEnabledController.ts')
-rw-r--r--src/background/controllers/AddonEnabledController.ts13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/background/controllers/AddonEnabledController.ts b/src/background/controllers/AddonEnabledController.ts
new file mode 100644
index 0000000..251af25
--- /dev/null
+++ b/src/background/controllers/AddonEnabledController.ts
@@ -0,0 +1,13 @@
+import AddonEnabledUseCase from '../usecases/AddonEnabledUseCase';
+
+export default class AddonEnabledController {
+ private addonEnabledUseCase: AddonEnabledUseCase;
+
+ constructor() {
+ this.addonEnabledUseCase = new AddonEnabledUseCase();
+ }
+
+ indicate(enabled: boolean): Promise<any> {
+ return this.addonEnabledUseCase.indicate(enabled);
+ }
+}