mirror of
https://github.com/zen-browser/desktop.git
synced 2025-10-16 14:56:14 +00:00
fix: Fixed issue with installing mods and unlock normandy preference, b=(closes #7198), c=mods, workspaces
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user