From ee93f8a876a97335fc05cf23b770114f56c20581 Mon Sep 17 00:00:00 2001 From: tophf Date: Sat, 1 Apr 2017 07:51:02 +0300 Subject: [PATCH] Set openerTabId to return to original tab on closing --- messaging.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/messaging.js b/messaging.js index a9ef239d..b51c3be1 100644 --- a/messaging.js +++ b/messaging.js @@ -157,7 +157,7 @@ function openURL({url, currentWindow = true}) { getActiveTab().then(tab => ( tab && tab.url == 'chrome://newtab/' ? chrome.tabs.update({url}, resolve) - : chrome.tabs.create({url}, resolve) + : chrome.tabs.create({url, openerTabId: tab.id}, resolve) )); }); });