fix: Initialize a default space if none exist, b=closes #11720, c=workspaces

This commit is contained in:
mr. m
2025-12-25 01:12:46 +01:00
parent 4c2cb60412
commit 6bd199a0b3

View File

@@ -284,7 +284,7 @@ class nsZenWorkspaces {
});
};
this._pinnedTabsResizeObserver = new ResizeObserver(onResize);
if (this.privateWindowOrDisabled) {
if (this.privateWindowOrDisabled || this._workspaceCache.length === 0) {
await this.restoreWorkspacesFromSessionStore({});
}
}