mirror of
https://github.com/zen-browser/desktop.git
synced 2025-09-05 19:08:18 +00:00
fix: Fixed compact mode being available in popup windows, b=(no-bug), c=compact-mode
This commit is contained in:
@@ -76,7 +76,14 @@ var gZenCompactModeManager = {
|
||||
return lazyCompactMode.mainAppWrapper.getAttribute('zen-compact-mode') === 'true';
|
||||
},
|
||||
|
||||
get shouldBeCompact() {
|
||||
return !document.documentElement.getAttribute('chromehidden').includes('toolbar');
|
||||
},
|
||||
|
||||
set preference(value) {
|
||||
if (!this.shouldBeCompact) {
|
||||
value = false;
|
||||
}
|
||||
if (
|
||||
this.preference === value ||
|
||||
document.documentElement.hasAttribute('zen-compact-animating')
|
||||
|
Reference in New Issue
Block a user