mirror of
https://github.com/zen-browser/components.git
synced 2025-07-08 04:19: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) {
|
if(this.shouldForceContainerTabsToWorkspace && typeof userContextId !== 'undefined' && this._workspaceCache?.workspaces) {
|
||||||
const workspace = this._workspaceCache.workspaces.find((workspace) => workspace.containerTabId === userContextId);
|
const workspace = this._workspaceCache.workspaces.find((workspace) => workspace.containerTabId === userContextId);
|
||||||
if(workspace && workspace.uuid !== this.getActiveWorkspaceFromCache().uuid) {
|
if(workspace && workspace.uuid !== this.getActiveWorkspaceFromCache().uuid) {
|
||||||
this.changeWorkspace(workspace).then(() => {
|
this.changeWorkspace(workspace);
|
||||||
|
return [userContextId, true];
|
||||||
return [userContextId, true];
|
|
||||||
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue