From b1c4cc9c45cc48413118aec8ce54767b1983a3e7 Mon Sep 17 00:00:00 2001 From: TC Date: Sat, 8 Jun 2019 13:26:16 +0200 Subject: [PATCH] Add titlebar/frame only on MacOS --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index e791a213..13b6fa3f 100644 --- a/index.js +++ b/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();