Skip to content

Commit

Permalink
Add titlebar/frame only on MacOS
Browse files Browse the repository at this point in the history
  • Loading branch information
th-ch committed Jun 8, 2019
1 parent a85325f commit b1c4cc9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit b1c4cc9

Please sign in to comment.