Skip to content

Commit

Permalink
fix: correctly update tab.isGroup flag
Browse files Browse the repository at this point in the history
  • Loading branch information
mbnuqw committed Feb 27, 2024
1 parent c8c8e8f commit 7415d15
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/services/tabs.fg.handlers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -526,9 +526,9 @@ function onTabUpdated(tabId: ID, change: browser.tabs.ChangeInfo, nativeTab: Nat
let branchColorizationNeeded = false
if (change.url !== undefined && change.url !== tab.url) {
const isInternal = change.url.startsWith(ADDON_HOST)
if (isInternal !== tab.internal) {
tab.isGroup = isInternal && Utils.isGroupUrl(change.url)
tab.reactive.isGroup = tab.isGroup
const isGroup = isInternal && Utils.isGroupUrl(change.url)
if (tab.isGroup !== isGroup) {
tab.reactive.isGroup = tab.isGroup = isGroup
}
tab.internal = isInternal
Tabs.cacheTabsData()
Expand Down

0 comments on commit 7415d15

Please sign in to comment.