1
0
Fork 1
mirror of https://github.com/zen-browser/desktop.git synced 2025-07-10 05:35:29 +02:00

FIxed opening bookmarks not inheriting

This commit is contained in:
mr. m 2025-02-25 13:36:22 +01:00
parent 3358d0e3d7
commit a5051e116a
No known key found for this signature in database
GPG key ID: 419302196C23B258
2 changed files with 23 additions and 1 deletions

View file

@ -2311,4 +2311,17 @@ var ZenWorkspaces = new (class extends ZenMultiWindowFeature {
}
gBrowser.selectedTab = tab;
}
getDefaultContainer() {
if (!this.workspaceEnabled) {
return 0;
}
const workspaces = this._workspaceCache;
if (!workspaces) {
return 0;
}
const activeWorkspace = this.activeWorkspace;
const workspace = workspaces.workspaces.find((workspace) => workspace.uuid === activeWorkspace);
return workspace.containerTabId;
}
})();