From 840729126e7287a643b978cb89acc342863b3692 Mon Sep 17 00:00:00 2001 From: Su-Yong Date: Tue, 5 Dec 2023 13:36:09 +0900 Subject: [PATCH] fix(macos): fix app crash in macOS --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index b105f494..cb3b038f 100644 --- a/src/index.ts +++ b/src/index.ts @@ -403,7 +403,7 @@ async function createMainWindow() { removeContentSecurityPolicy(); win.webContents.on('dom-ready', async () => { - if (useInlineMenu && !is.linux()) { + if (useInlineMenu && is.windows()) { win.setTitleBarOverlay({ ...defaultTitleBarOverlayOptions, height: Math.floor(