diff options
author | Shin'ya Ueoka <ueokande@i-beam.org> | 2017-08-23 21:28:50 +0900 |
---|---|---|
committer | Shin'ya Ueoka <ueokande@i-beam.org> | 2017-08-23 21:53:02 +0900 |
commit | 1afbde6e199309703f07f2d031632d9d2422a3d5 (patch) | |
tree | 49e9b95f5069ee31c6fc8a10809afc566e455868 /src/shared | |
parent | eec79730606ab3b49529d8063c6646d6309d8084 (diff) |
support history navigation
Diffstat (limited to 'src/shared')
-rw-r--r-- | src/shared/actions.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/shared/actions.js b/src/shared/actions.js index bb61dbc..e01813b 100644 --- a/src/shared/actions.js +++ b/src/shared/actions.js @@ -9,6 +9,8 @@ export const SCROLL_DOWN = 'scroll.down'; export const SCROLL_TOP = 'scroll.top'; export const SCROLL_BOTTOM = 'scroll.bottom'; export const FOLLOW_START = 'follow.start'; +export const HISTORY_PREV = 'history.prev'; +export const HISTORY_NEXT = 'history.next'; const BACKGROUND_ACTION_SET = new Set([ TABS_CLOSE, @@ -24,7 +26,9 @@ const CONTENT_ACTION_SET = new Set([ SCROLL_DOWN, SCROLL_TOP, SCROLL_BOTTOM, - FOLLOW_START + FOLLOW_START, + HISTORY_PREV, + HISTORY_NEXT ]); export const isBackgroundAction = (action) => { |