mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-11 10:31:47 +00:00
Add titlebar/frame only on MacOS
This commit is contained in:
4
index.js
4
index.js
@ -45,8 +45,8 @@ function createMainWindow() {
|
|||||||
nodeIntegration: false,
|
nodeIntegration: false,
|
||||||
preload : path.join(__dirname, "preload.js")
|
preload : path.join(__dirname, "preload.js")
|
||||||
},
|
},
|
||||||
frame : false,
|
frame : !is.macOS(),
|
||||||
titleBarStyle: "hiddenInset"
|
titleBarStyle: is.macOS() ? "hiddenInset": "default"
|
||||||
});
|
});
|
||||||
if (windowMaximized) {
|
if (windowMaximized) {
|
||||||
win.maximize();
|
win.maximize();
|
||||||
|
|||||||
Reference in New Issue
Block a user