diff options
author | Erwan Ameil <wan@idlewan.com> | 2017-11-16 13:03:38 +0000 |
---|---|---|
committer | Erwan Ameil <wan@idlewan.com> | 2017-11-16 13:03:38 +0000 |
commit | 177940981ed9c4f096ad7db20f0b7ee044fd7b17 (patch) | |
tree | ee187b6b621a356f894971c2ee18169cac28a40f /src/content/actions | |
parent | a50c7dd0a20cbef8860c3592ae70d3813d94b78d (diff) |
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 767f14b..5c8fe83 100644 --- a/src/content/actions/operation.js +++ b/src/content/actions/operation.js @@ -40,7 +40,8 @@ const exec = (operation) => { 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); |