mirror of
https://github.com/zen-browser/desktop.git
synced 2025-10-08 10:56:36 +00:00
Refactor ZenWorkspaces to improve promise handling in tab switching logic
This commit is contained in:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user