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