Set openerTabId to return to original tab on closing

This commit is contained in:
tophf 2017-04-01 07:51:02 +03:00
parent 3d163df853
commit ee93f8a876

View File

@ -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)
)); ));
}); });
}); });