mirror of
https://github.com/zen-browser/components.git
synced 2025-07-08 14:10:00 +02:00
Refactor ZenWorkspaces.mjs to return an array with contextId and a boolean flag
This commit is contained in:
parent
b372ec2694
commit
c9c5c94e8d
1 changed files with 2 additions and 2 deletions
|
@ -688,10 +688,10 @@ var ZenWorkspaces = {
|
||||||
// Tab browser utilities
|
// Tab browser utilities
|
||||||
getContextIdIfNeeded(userContextId) {
|
getContextIdIfNeeded(userContextId) {
|
||||||
if (typeof userContextId !== "undefined" || !this.workspaceEnabled) {
|
if (typeof userContextId !== "undefined" || !this.workspaceEnabled) {
|
||||||
return userContextId;
|
return [userContextId, false];
|
||||||
}
|
}
|
||||||
const activeWorkspace = this.getActiveWorkspaceFromCache();
|
const activeWorkspace = this.getActiveWorkspaceFromCache();
|
||||||
return activeWorkspace?.containerTabId;
|
return [activeWorkspace?.containerTabId, true];
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue