mirror of
https://github.com/zen-browser/components.git
synced 2025-07-07 23:29:59 +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;
|
||||
let tab = gBrowser.getTabForBrowser(browser);
|
||||
let workspaceID = tab.getAttribute('zen-workspace-id');
|
||||
if (!workspaceID) {
|
||||
return;
|
||||
}
|
||||
let activeWorkspace = await parent.ZenWorkspaces.getActiveWorkspace();
|
||||
if (workspaceID === activeWorkspace.uuid) {
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue