From e01291afd66f90f93edb0006666b33cb0754210c Mon Sep 17 00:00:00 2001 From: noaione Date: Wed, 19 Mar 2025 18:54:26 +0700 Subject: [PATCH] fix(pinnedTab): not working on private window --- src/browser/base/zen-components/ZenPinnedTabManager.mjs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/browser/base/zen-components/ZenPinnedTabManager.mjs b/src/browser/base/zen-components/ZenPinnedTabManager.mjs index f7c3bda56..d091e0f2e 100644 --- a/src/browser/base/zen-components/ZenPinnedTabManager.mjs +++ b/src/browser/base/zen-components/ZenPinnedTabManager.mjs @@ -834,7 +834,7 @@ removeTabContainersDragoverClass() { this.dragIndicator.remove(); this._dragIndicator = null; - ZenWorkspaces.activeWorkspaceIndicator.removeAttribute('open'); + ZenWorkspaces.activeWorkspaceIndicator?.removeAttribute('open'); } get dragIndicator() { @@ -894,9 +894,9 @@ targetTab = targetTab?.group || targetTab; if (event.target.closest('.zen-current-workspace-indicator')) { this.removeTabContainersDragoverClass(); - ZenWorkspaces.activeWorkspaceIndicator.setAttribute('open', true); + ZenWorkspaces.activeWorkspaceIndicator?.setAttribute('open', true); } else { - ZenWorkspaces.activeWorkspaceIndicator.removeAttribute('open'); + ZenWorkspaces.activeWorkspaceIndicator?.removeAttribute('open'); } // If there's no valid target tab, nothing to do