From c9adec30cbd02d8a68209af6df5b019a9aea4e44 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kristijan=20Ribari=C4=87?= Date: Mon, 14 Oct 2024 16:21:40 +0200 Subject: [PATCH] Fix: Remove unnecessary `then` call in `ZenWorkspaces` and return an array. --- src/ZenWorkspaces.mjs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/ZenWorkspaces.mjs b/src/ZenWorkspaces.mjs index 85ff34e..d74d849 100644 --- a/src/ZenWorkspaces.mjs +++ b/src/ZenWorkspaces.mjs @@ -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]; } }