From 55564b543a385d61e6546cc874aec33c8da90f87 Mon Sep 17 00:00:00 2001 From: tophf Date: Sun, 3 Dec 2017 02:44:03 +0300 Subject: [PATCH] replace 'about:blank' tabs in openURL() --- js/messaging.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/messaging.js b/js/messaging.js index 6382a8bf..fb373fb1 100644 --- a/js/messaging.js +++ b/js/messaging.js @@ -226,7 +226,7 @@ function openURL({url, index, openerTabId, currentWindow = true}) { } getActiveTab().then(tab => { const chromeInIncognito = tab && tab.incognito && url.startsWith('chrome'); - if (tab && tab.url === 'chrome://newtab/' && !chromeInIncognito) { + if (tab && (tab.url === 'chrome://newtab/' || tab.url === 'about:newtab') && !chromeInIncognito) { // update current NTP, except for chrome:// or chrome-extension:// in incognito chrome.tabs.update({url}, resolve); } else {