Fixed glance opening on essential tabs even if it's disabled (closes https://github.com/zen-browser/desktop/issues/4564)

This commit is contained in:
mr. M
2025-01-23 19:51:12 +01:00
parent c3f22ec7eb
commit 3972f3e2a7

View File

@@ -330,7 +330,8 @@
this._lazyPref.SHOULD_OPEN_EXTERNAL_TABS_IN_GLANCE &&
owner.linkedBrowser?.docShellIsActive &&
owner.linkedBrowser?.browsingContext?.isAppTab &&
this.tabDomainsDiffer(owner, uri)
this.tabDomainsDiffer(owner, uri) &&
Services.prefs.getBoolPref('zen.glance.enabled', true)
);
}