mirror of
https://github.com/zen-browser/desktop.git
synced 2025-10-05 17:36:34 +00:00
Fix enabled property check in ZenPinnedTabManager for improved reliability
This commit is contained in:
@@ -58,11 +58,11 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
get enabled() {
|
get enabled() {
|
||||||
if (!this._enabled) {
|
if (typeof this._enabled === 'undefined') {
|
||||||
this._enabled = !(
|
this._enabled = !(
|
||||||
docElement.hasAttribute('privatebrowsingmode') ||
|
document.documentElement.hasAttribute('privatebrowsingmode') ||
|
||||||
docElement.getAttribute('chromehidden').includes('toolbar') ||
|
document.documentElement.getAttribute('chromehidden')?.includes('toolbar') ||
|
||||||
docElement.getAttribute('chromehidden').includes('menubar')
|
document.documentElement.getAttribute('chromehidden')?.includes('menubar')
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
return this._enabled;
|
return this._enabled;
|
||||||
|
Reference in New Issue
Block a user