aboutsummaryrefslogtreecommitdiff
path: root/src/background/operators/impls/TabOperatorFactoryChain.ts
diff options
context:
space:
mode:
authorShin'ya UEOKA <ueokande@i-beam.org>2021-05-09 02:37:54 +0000
committerShin'ya UEOKA <ueokande@i-beam.org>2021-05-09 02:37:54 +0000
commita7ade501f7c85632208c74e3553305c815159d01 (patch)
tree27a43ae9ba44cb295c4825d81fe52bc7cb9ef004 /src/background/operators/impls/TabOperatorFactoryChain.ts
parent48bee8f5d2b4a5c5996870b46afeadefed86106e (diff)
Support reader-mode
Diffstat (limited to 'src/background/operators/impls/TabOperatorFactoryChain.ts')
-rw-r--r--src/background/operators/impls/TabOperatorFactoryChain.ts3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/background/operators/impls/TabOperatorFactoryChain.ts b/src/background/operators/impls/TabOperatorFactoryChain.ts
index edd3eaf..d526f86 100644
--- a/src/background/operators/impls/TabOperatorFactoryChain.ts
+++ b/src/background/operators/impls/TabOperatorFactoryChain.ts
@@ -16,6 +16,7 @@ import PinTabOperator from "./PinTabOperator";
import UnpinTabOperator from "./UnpinTabOperator";
import TogglePinnedTabOperator from "./TogglePinnedTabOperator";
import DuplicateTabOperator from "./DuplicateTabOperator";
+import ToggleReaderOperator from "./ToggleReaderOperator";
@injectable()
export default class TabOperatorFactoryChain implements OperatorFactoryChain {
@@ -58,6 +59,8 @@ export default class TabOperatorFactoryChain implements OperatorFactoryChain {
return new TogglePinnedTabOperator(this.tabPresenter);
case operations.TAB_DUPLICATE:
return new DuplicateTabOperator(this.tabPresenter);
+ case operations.TAB_TOGGLE_READER:
+ return new ToggleReaderOperator(this.tabPresenter);
}
return null;
}