Skip to content

Commit 64b69f7

Browse files
committed
Fix regression by a9b951d
1 parent 118e5b0 commit 64b69f7

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

webextensions/background/handle-new-tabs.js

+7-4
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,13 @@ Tab.onBeforeCreate.addListener(async (tab, info) => {
4242
!tab.openerTabId &&
4343
!tab.pinned &&
4444
tab.$TST.isNewTabCommandTab &&
45-
((activeTab?.pinned &&
46-
Constants.kCONTROLLED_INSERTION_POSITION.has(configs.insertNewTabFromPinnedTabAt)) ||
47-
(isFirefoxViewTab(activeTab) &&
48-
Constants.kCONTROLLED_NEWTAB_POSITION.has(configs.autoAttachOnNewTabCommand)))
45+
Constants.kCONTROLLED_NEWTAB_POSITION.has(configs.autoAttachOnNewTabCommand) &&
46+
(
47+
(activeTab?.pinned &&
48+
Constants.kCONTROLLED_INSERTION_POSITION.has(configs.insertNewTabFromPinnedTabAt)) ||
49+
(isFirefoxViewTab(activeTab) &&
50+
Constants.kCONTROLLED_INSERTION_POSITION.has(configs.insertNewTabFromFirefoxViewAt))
51+
)
4952
);
5053
if (shouldAttachToPinnedOpener)
5154
tab.openerTabId = activeTab.id;

0 commit comments

Comments
 (0)