fix: Fixed restoring tabs not showing the separator correctly, b=(no-bug), c=workspaces

This commit is contained in:
Mr. M
2025-05-19 19:11:49 +02:00
parent 8536634fa4
commit 3e9d98233c
2 changed files with 9 additions and 2 deletions

View File

@@ -2600,7 +2600,10 @@ var gZenWorkspaces = new (class extends ZenMultiWindowFeature {
forAnimation = false;
}
for (const entry of entries) {
const originalWorkspaceId = entry.target.getAttribute('zen-workspace-id');
let originalWorkspaceId = entry.target.getAttribute('zen-workspace-id');
if (!originalWorkspaceId) {
originalWorkspaceId = entry.target.closest('zen-workspace')?.id;
}
const workspacesIds = [];
if (entry.target.closest('#zen-essentials')) {
// Get all workspaces that have the same userContextId