aboutsummaryrefslogtreecommitdiff
path: root/src/content/operators/impls/EnableAddonOperator.ts
diff options
context:
space:
mode:
authorShin'ya Ueoka <ueokande@i-beam.org>2021-03-22 20:44:07 +0900
committerGitHub <noreply@github.com>2021-03-22 20:44:07 +0900
commitfa733c1ff110054f673f3d4e8d4760eb90d5d1eb (patch)
tree0a7d9f041a01d29f0bc5972a343e4988dc71b468 /src/content/operators/impls/EnableAddonOperator.ts
parent3cbaf4a9f4245bd6be4eccdbff11e20ffaaf523a (diff)
parent690c9c080a2a511a30d555a90e5005e06b750351 (diff)
Merge pull request #1043 from ueokande/iframe-late-inject
iframe Late injection
Diffstat (limited to 'src/content/operators/impls/EnableAddonOperator.ts')
-rw-r--r--src/content/operators/impls/EnableAddonOperator.ts5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/content/operators/impls/EnableAddonOperator.ts b/src/content/operators/impls/EnableAddonOperator.ts
index b5b1d79..fe2b771 100644
--- a/src/content/operators/impls/EnableAddonOperator.ts
+++ b/src/content/operators/impls/EnableAddonOperator.ts
@@ -1,15 +1,18 @@
import Operator from "../Operator";
import AddonIndicatorClient from "../../client/AddonIndicatorClient";
import AddonEnabledRepository from "../../repositories/AddonEnabledRepository";
+import ConsoleFramePresenter from "../../presenters/ConsoleFramePresenter";
export default class EnableAddonOperator implements Operator {
constructor(
private readonly indicator: AddonIndicatorClient,
- private readonly repository: AddonEnabledRepository
+ private readonly repository: AddonEnabledRepository,
+ private readonly consoleFramePresenter: ConsoleFramePresenter
) {}
async run(): Promise<void> {
this.repository.set(true);
+ this.consoleFramePresenter.attach();
await this.indicator.setEnabled(true);
}
}