diff options
author | Shin'ya UEOKA <ueokande@i-beam.org> | 2021-05-09 02:37:54 +0000 |
---|---|---|
committer | Shin'ya UEOKA <ueokande@i-beam.org> | 2021-05-09 02:37:54 +0000 |
commit | a7ade501f7c85632208c74e3553305c815159d01 (patch) | |
tree | 27a43ae9ba44cb295c4825d81fe52bc7cb9ef004 /src/shared | |
parent | 48bee8f5d2b4a5c5996870b46afeadefed86106e (diff) |
Support reader-mode
Diffstat (limited to 'src/shared')
-rw-r--r-- | src/shared/operations.ts | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/shared/operations.ts b/src/shared/operations.ts index 3544502..1433011 100644 --- a/src/shared/operations.ts +++ b/src/shared/operations.ts @@ -56,6 +56,7 @@ export const TAB_PIN = "tabs.pin"; export const TAB_UNPIN = "tabs.unpin"; export const TAB_TOGGLE_PINNED = "tabs.pin.toggle"; export const TAB_DUPLICATE = "tabs.duplicate"; +export const TAB_TOGGLE_READER = "tabs.reader.toggle"; // Zooms export const ZOOM_IN = "zoom.in"; @@ -257,6 +258,10 @@ export interface TabDuplicateOperation { type: typeof TAB_DUPLICATE; } +export interface TabToggleReaderOperation { + type: typeof TAB_TOGGLE_READER; +} + export interface ZoomInOperation { type: typeof ZOOM_IN; } @@ -352,6 +357,7 @@ export type Operation = | TabUnpinOperation | TabTogglePinnedOperation | TabDuplicateOperation + | TabToggleReaderOperation | ZoomInOperation | ZoomOutOperation | ZoomNeutralOperation @@ -506,6 +512,7 @@ export const valueOf = (o: any): Operation => { case TAB_UNPIN: case TAB_TOGGLE_PINNED: case TAB_DUPLICATE: + case TAB_TOGGLE_READER: case ZOOM_IN: case ZOOM_OUT: case ZOOM_NEUTRAL: |