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/background/components | |
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/background/components')
-rw-r--r-- | src/background/components/background.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/background/components/background.js b/src/background/components/background.js index fdec8ec..fae3fbb 100644 --- a/src/background/components/background.js +++ b/src/background/components/background.js @@ -33,8 +33,10 @@ export default class BackgroundComponent { sender); case messages.OPEN_URL: if (message.newTab) { - return this.store.dispatch( - tabActions.openNewTab(message.url, sender.tab.id), sender); + let action = tabActions.openNewTab( + message.url, sender.tab.id, message.background, + settings.value.properties.adjacenttab); + return this.store.dispatch(action, sender); } return this.store.dispatch( tabActions.openToTab(message.url, sender.tab), sender); |