From 0014890881f70ef1b2e263e3be73a605ea640340 Mon Sep 17 00:00:00 2001 From: cutls Date: Tue, 7 Apr 2020 12:52:42 +0900 Subject: [PATCH] Fix: hidden titlebar with frameless mode on macOS --- app/main.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/main.js b/app/main.js index faa3be90..eb1a748f 100644 --- a/app/main.js +++ b/app/main.js @@ -102,8 +102,10 @@ try { var frameRaw = fs.readFileSync(frame_path, 'utf8') if(frameRaw == 'false') { var frame = false + var frameTitle = 'hidden' } else { var frame = true + var frameTitle = 'default' } } catch { var frame = true @@ -186,6 +188,7 @@ function createWindow() { y: window_size.y, simpleFullscreen: true, show: false, + titleBarStyle: frameTitle, frame: frame, } }