Refactor ZenWorkspaces to improve promise handling in tab switching logic

This commit is contained in:
mr. M
2025-02-22 20:59:13 +01:00
parent 7819b561ad
commit 74728b4544

View File

@@ -2273,7 +2273,7 @@ var ZenWorkspaces = new (class extends ZenMultiWindowFeature {
}
switchIfNeeded(browser) {
return new Promise(async(resolve) => {
return new Promise(async (resolve) => {
const tab = gBrowser.getTabForBrowser(browser);
const workspaceId = tab.getAttribute('zen-workspace-id');
if (!tab.hasAttribute('zen-essential') && workspaceId !== this.activeWorkspace) {