Add titlebar/frame only on MacOS

This commit is contained in:
TC
2019-06-08 13:26:16 +02:00
parent a85325f33d
commit b1c4cc9c45

View File

@ -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();