diff options
author | Shin'ya Ueoka <ueokande@i-beam.org> | 2018-05-01 14:17:29 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-01 14:17:29 +0900 |
commit | 89d6afecfd257ff4fc62748f771abf37ef3a2852 (patch) | |
tree | f0ebc8a1a7a9f29dc4775dea62ae89166837c4c1 /src/content/actions | |
parent | fb8a0f36aa4d070df936cc7598ef8dd988ee1b15 (diff) | |
parent | daefddf8b86f2844b9ad2220cb2983129a366484 (diff) |
Merge pull request #171 from idlewan/background-adjacent-tabs
Open adjacent tabs and background tabs
Diffstat (limited to 'src/content/actions')
-rw-r--r-- | src/content/actions/follow-controller.js | 3 | ||||
-rw-r--r-- | src/content/actions/operation.js | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/src/content/actions/follow-controller.js b/src/content/actions/follow-controller.js index 3fd4dce..006b248 100644 --- a/src/content/actions/follow-controller.js +++ b/src/content/actions/follow-controller.js @@ -1,9 +1,10 @@ import actions from 'content/actions'; -const enable = (newTab) => { +const enable = (newTab, background) => { return { type: actions.FOLLOW_CONTROLLER_ENABLE, newTab, + background, }; }; diff --git a/src/content/actions/operation.js b/src/content/actions/operation.js index 71b2470..9171766 100644 --- a/src/content/actions/operation.js +++ b/src/content/actions/operation.js @@ -44,7 +44,8 @@ const exec = (operation, repeat, settings) => { case operations.FOLLOW_START: return window.top.postMessage(JSON.stringify({ type: messages.FOLLOW_START, - newTab: operation.newTab + newTab: operation.newTab, + background: operation.background, }), '*'); case operations.NAVIGATE_HISTORY_PREV: return navigates.historyPrev(window); |