mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-10 10:11:46 +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,
|
||||
preload : path.join(__dirname, "preload.js")
|
||||
},
|
||||
frame : false,
|
||||
titleBarStyle: "hiddenInset"
|
||||
frame : !is.macOS(),
|
||||
titleBarStyle: is.macOS() ? "hiddenInset": "default"
|
||||
});
|
||||
if (windowMaximized) {
|
||||
win.maximize();
|
||||
|
||||
Reference in New Issue
Block a user