Skip to content

Commit 7c5802b

Browse files
authored
call renderTab for newly inactive tab (#152)
1 parent e731de7 commit 7c5802b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

packages/shell/browser/ui/webui.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
class WebUI {
22
windowId = -1
33
activeTabId = -1
4+
/** @type {chrome.tabs.Tab[]} */
45
tabList = []
56

67
constructor() {
@@ -119,7 +120,10 @@ class WebUI {
119120
this.renderTab(tab)
120121
this.renderToolbar(tab)
121122
} else {
122-
tab.active = false
123+
if (tab.active) {
124+
tab.active = false
125+
this.renderTab(tab)
126+
}
123127
}
124128
}
125129
}

0 commit comments

Comments
 (0)