Skip to content

Commit 7a99f0f

Browse files
committed
Fix selecting unloaded tabs will no longer open new tab
1 parent 59e1d14 commit 7a99f0f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/zen/workspaces/ZenWorkspaces.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3205,7 +3205,7 @@ var ZenWorkspaces = new (class extends ZenMultiWindowFeature {
32053205
if (!this._hasInitializedTabsStrip) {
32063206
return gBrowser.browsers;
32073207
}
3208-
const browsers = Array.from(gBrowser.tabpanels.querySelectorAll('browser'));
3208+
const browsers = Array.from(this.allStoredTabs).map(tab => tab.linkedBrowser);
32093209
// Sort browsers by making the current workspace first
32103210
const currentWorkspace = this.activeWorkspace;
32113211
const sortedBrowsers = browsers.sort((a, b) => {

0 commit comments

Comments
 (0)