diff options
author | Shin'ya Ueoka <ueokande@i-beam.org> | 2018-02-25 08:41:51 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-02-25 08:41:51 +0000 |
commit | 2fd6a3f90fe2c910aaa14556b0d55da4070aba85 (patch) | |
tree | d2ecec6c48c6cd28d24a0b1c2c95cc3422b8eea1 /src/background/actions/tab.js | |
parent | d0e4fc92ce678fdb18fc27a9810f7fb1c8b8a8f5 (diff) | |
parent | 21c7320bcfd9cf881ba5aa98b9640e8c8c068d16 (diff) |
Merge pull request #347 from ueokande/set-tab-opener
Set opener tab id
Diffstat (limited to 'src/background/actions/tab.js')
-rw-r--r-- | src/background/actions/tab.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/background/actions/tab.js b/src/background/actions/tab.js index e512b6f..40da55d 100644 --- a/src/background/actions/tab.js +++ b/src/background/actions/tab.js @@ -1,5 +1,5 @@ -const openNewTab = (url) => { - return browser.tabs.create({ url: url }); +const openNewTab = (url, openerTabId) => { + return browser.tabs.create({ url, openerTabId }); }; const openToTab = (url, tab) => { |