fix: Fixed empty windows appearing when using the window.open JS API, b=closes #8958, c=workspaces

This commit is contained in:
mr. m
2025-06-14 14:08:11 +02:00
parent a3f1733fd4
commit 8e799a678f
2 changed files with 4 additions and 4 deletions

View File

@@ -913,7 +913,7 @@ var gZenWorkspaces = new (class extends ZenMultiWindowFeature {
}
async selectStartPage() {
if (gZenUIManager.testingEnabled || !this.workspaceEnabled) {
if (!this.workspaceEnabled) {
return;
}
await this.promiseInitialized;
@@ -1015,7 +1015,7 @@ var gZenWorkspaces = new (class extends ZenMultiWindowFeature {
}
handleInitialTab(tab, isEmpty) {
if (gZenUIManager.testingEnabled) {
if (gZenUIManager.testingEnabled || !this.workspaceEnabled) {
return;
}
// note: We cant access `gZenVerticalTabsManager._canReplaceNewTab` this early