@ -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) => {
@ -31,7 +31,7 @@ export default class BackgroundComponent {
case messages.OPEN_URL:
if (message.newTab) {
return this.store.dispatch(
tabActions.openNewTab(message.url), sender);
tabActions.openNewTab(message.url, sender.tab.id), sender);
}
tabActions.openToTab(message.url, sender.tab), sender);