mirror of
https://github.com/zen-browser/components.git
synced 2025-07-08 06:09:58 +02:00
Refactor ZenWorkspaces to handle changing workspaces and update context menu
This commit is contained in:
parent
c5b907ade6
commit
1396523f3b
1 changed files with 3 additions and 0 deletions
|
@ -726,6 +726,9 @@ var ZenWorkspaces = new (class extends ZenMultiWindowFeature {
|
||||||
const parent = browser.ownerGlobal;
|
const parent = browser.ownerGlobal;
|
||||||
let tab = gBrowser.getTabForBrowser(browser);
|
let tab = gBrowser.getTabForBrowser(browser);
|
||||||
let workspaceID = tab.getAttribute('zen-workspace-id');
|
let workspaceID = tab.getAttribute('zen-workspace-id');
|
||||||
|
if (!workspaceID) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
let activeWorkspace = await parent.ZenWorkspaces.getActiveWorkspace();
|
let activeWorkspace = await parent.ZenWorkspaces.getActiveWorkspace();
|
||||||
if (workspaceID === activeWorkspace.uuid) {
|
if (workspaceID === activeWorkspace.uuid) {
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue