Add support for new tab in the re-open feature
This commit is contained in:
@@ -88,8 +88,13 @@ const backgroundLogic = {
|
|||||||
if (currentTab.length > 0) {
|
if (currentTab.length > 0) {
|
||||||
const tab = currentTab[0];
|
const tab = currentTab[0];
|
||||||
|
|
||||||
|
let url = tab.url;
|
||||||
|
if (this.NEW_TAB_PAGES.has(url) || !this.isPermissibleURL(url)) {
|
||||||
|
url = undefined;
|
||||||
|
}
|
||||||
|
|
||||||
browser.tabs.create({
|
browser.tabs.create({
|
||||||
url: tab.url,
|
url,
|
||||||
cookieStoreId,
|
cookieStoreId,
|
||||||
index: tab.index + 1,
|
index: tab.index + 1,
|
||||||
active: tab.active
|
active: tab.active
|
||||||
|
|||||||
Reference in New Issue
Block a user