mirror of
https://github.com/zen-browser/components.git
synced 2025-07-07 21:39:58 +02:00
Fix: Remove unnecessary then
call in ZenWorkspaces
and return an array.
This commit is contained in:
parent
74bd43f9c9
commit
c9adec30cb
1 changed files with 2 additions and 5 deletions
|
@ -888,11 +888,8 @@ var ZenWorkspaces = new (class extends ZenMultiWindowFeature {
|
|||
if(this.shouldForceContainerTabsToWorkspace && typeof userContextId !== 'undefined' && this._workspaceCache?.workspaces) {
|
||||
const workspace = this._workspaceCache.workspaces.find((workspace) => workspace.containerTabId === userContextId);
|
||||
if(workspace && workspace.uuid !== this.getActiveWorkspaceFromCache().uuid) {
|
||||
this.changeWorkspace(workspace).then(() => {
|
||||
|
||||
return [userContextId, true];
|
||||
|
||||
});
|
||||
this.changeWorkspace(workspace);
|
||||
return [userContextId, true];
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue