mirror of
https://github.com/zen-browser/desktop.git
synced 2026-04-29 02:34:18 +00:00
fix: Fixed empty windows appearing when using the window.open JS API, b=closes #8958, c=workspaces
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user