fix: Fixed issue with installing mods and unlock normandy preference, b=(closes #7198), c=mods, workspaces

This commit is contained in:
Mr. M
2025-05-11 19:33:06 +02:00
parent 39a357fa57
commit 1a2b527070
4 changed files with 9 additions and 8 deletions

View File

@@ -3211,6 +3211,9 @@ var ZenWorkspaces = new (class extends ZenMultiWindowFeature {
const sortedBrowsers = browsers.sort((a, b) => {
const aTab = gBrowser.getTabForBrowser(a);
const bTab = gBrowser.getTabForBrowser(b);
if (!bTab || !aTab) {
return 0;
}
const aWorkspaceId = aTab.getAttribute('zen-workspace-id');
const bWorkspaceId = bTab.getAttribute('zen-workspace-id');
return aWorkspaceId === currentWorkspace ? -1 : bWorkspaceId === currentWorkspace ? 1 : 0;