mirror of
https://github.com/zen-browser/desktop.git
synced 2025-07-09 01:45:30 +02:00
fix: correct usage of matchMedia in ZenCustomizableUI for better compatibility
This commit is contained in:
parent
44a4ce44d4
commit
1049277e17
1 changed files with 1 additions and 1 deletions
|
@ -71,7 +71,7 @@ export var ZenCustomizableUI = new (class {
|
|||
_moveWindowButtons(window) {
|
||||
const windowControls = window.document.getElementsByClassName('titlebar-buttonbox-container');
|
||||
const toolboxIcons = window.document.getElementById('zen-sidebar-top-buttons-customization-target');
|
||||
if (window.AppConstants.platform === 'macosx'|| matchMedia('(-moz-gtk-csd-reversed-placement)').matches) {
|
||||
if (window.AppConstants.platform === 'macosx'|| window.matchMedia('(-moz-gtk-csd-reversed-placement)').matches) {
|
||||
for (let i = 0; i < windowControls.length; i++) {
|
||||
if (i === 0) {
|
||||
toolboxIcons.prepend(windowControls[i]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue