mirror of
https://github.com/zen-browser/components.git
synced 2025-07-08 22:55:29 +02:00
Refactor ZenSidebarManager to handle drag enter event properly
This commit is contained in:
parent
5c9edb195a
commit
9a1dcde549
2 changed files with 8 additions and 3 deletions
|
@ -823,11 +823,13 @@ var ZenWorkspaces = {
|
|||
},
|
||||
|
||||
getContextIdIfNeeded(userContextId) {
|
||||
if (typeof userContextId !== 'undefined' || !this.workspaceEnabled) {
|
||||
const activeWorkspace = this.getActiveWorkspaceFromCache();
|
||||
const activeWorkspaceUserContextId = activeWorkspace?.containerTabId;
|
||||
if ((typeof userContextId !== 'undefined' && userContextId !== activeWorkspaceUserContextId)
|
||||
|| !this.workspaceEnabled) {
|
||||
return [userContextId, false];
|
||||
}
|
||||
const activeWorkspace = this.getActiveWorkspaceFromCache();
|
||||
return [activeWorkspace?.containerTabId, true];
|
||||
return [activeWorkspaceUserContextId, true];
|
||||
},
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue