mirror of
https://github.com/zen-browser/desktop.git
synced 2025-10-05 17:36:34 +00:00
fix: handle undefined ZenWorkspaces in tab selection
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
diff --git a/toolkit/content/widgets/tabbox.js b/toolkit/content/widgets/tabbox.js
|
||||
index 717f0583f224be2d09a7966ee5627ebab83cc07f..af809ad8f189a11c1ab9383033483db5dcd7cf96 100644
|
||||
index 717f0583f224be2d09a7966ee5627ebab83cc07f..ec251b99562f2a9b6dcfecc4588e44bbff315612 100644
|
||||
--- a/toolkit/content/widgets/tabbox.js
|
||||
+++ b/toolkit/content/widgets/tabbox.js
|
||||
@@ -213,7 +213,7 @@
|
||||
@@ -16,7 +16,7 @@ index 717f0583f224be2d09a7966ee5627ebab83cc07f..af809ad8f189a11c1ab9383033483db5
|
||||
return;
|
||||
}
|
||||
- for (let otherTab of this.allTabs) {
|
||||
+ for (let otherTab of ZenWorkspaces.allStoredTabs) {
|
||||
+ for (let otherTab of window.ZenWorkspaces?.allStoredTabs ?? this.allTabs) {
|
||||
if (otherTab != tab && otherTab.selected) {
|
||||
otherTab._selected = false;
|
||||
}
|
||||
|
Reference in New Issue
Block a user