Set openerTabId to return to original tab on closing
This commit is contained in:
parent
3d163df853
commit
ee93f8a876
|
@ -157,7 +157,7 @@ function openURL({url, currentWindow = true}) {
|
||||||
getActiveTab().then(tab => (
|
getActiveTab().then(tab => (
|
||||||
tab && tab.url == 'chrome://newtab/'
|
tab && tab.url == 'chrome://newtab/'
|
||||||
? chrome.tabs.update({url}, resolve)
|
? chrome.tabs.update({url}, resolve)
|
||||||
: chrome.tabs.create({url}, resolve)
|
: chrome.tabs.create({url, openerTabId: tab.id}, resolve)
|
||||||
));
|
));
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue
Block a user