mirror of
https://github.com/zen-browser/desktop.git
synced 2025-10-06 01:46:35 +00:00
fix(pinnedTab): not working on private window
This commit is contained in:
@@ -834,7 +834,7 @@
|
|||||||
removeTabContainersDragoverClass() {
|
removeTabContainersDragoverClass() {
|
||||||
this.dragIndicator.remove();
|
this.dragIndicator.remove();
|
||||||
this._dragIndicator = null;
|
this._dragIndicator = null;
|
||||||
ZenWorkspaces.activeWorkspaceIndicator.removeAttribute('open');
|
ZenWorkspaces.activeWorkspaceIndicator?.removeAttribute('open');
|
||||||
}
|
}
|
||||||
|
|
||||||
get dragIndicator() {
|
get dragIndicator() {
|
||||||
@@ -894,9 +894,9 @@
|
|||||||
targetTab = targetTab?.group || targetTab;
|
targetTab = targetTab?.group || targetTab;
|
||||||
if (event.target.closest('.zen-current-workspace-indicator')) {
|
if (event.target.closest('.zen-current-workspace-indicator')) {
|
||||||
this.removeTabContainersDragoverClass();
|
this.removeTabContainersDragoverClass();
|
||||||
ZenWorkspaces.activeWorkspaceIndicator.setAttribute('open', true);
|
ZenWorkspaces.activeWorkspaceIndicator?.setAttribute('open', true);
|
||||||
} else {
|
} else {
|
||||||
ZenWorkspaces.activeWorkspaceIndicator.removeAttribute('open');
|
ZenWorkspaces.activeWorkspaceIndicator?.removeAttribute('open');
|
||||||
}
|
}
|
||||||
|
|
||||||
// If there's no valid target tab, nothing to do
|
// If there's no valid target tab, nothing to do
|
||||||
|
Reference in New Issue
Block a user