fix(native-buttons): regressions on mac

This commit is contained in:
Elian Doran
2024-12-07 00:14:05 +02:00
parent aad2f93844
commit 88a93e3a7b
3 changed files with 7 additions and 3 deletions

View File

@@ -66,7 +66,6 @@ function initTitleBarButtons() {
currentWindow.setTitleBarOverlay({ color, symbolColor });
}
// FIXME: call only on darwin
if (window.glob.platform === "darwin") {
const xOffset = parseInt(style.getPropertyValue("--native-titlebar-darwin-x-offset"), 10);
const yOffset = parseInt(style.getPropertyValue("--native-titlebar-darwin-y-offset"), 10);