From 2eb6627045b5ddd49dfb4d1a1e6b049070623d9c Mon Sep 17 00:00:00 2001 From: Matthijs van der Burgh Date: Thu, 18 Jun 2020 23:47:31 +0200 Subject: [PATCH] No menu bar in production --- src/main/index.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main/index.js b/src/main/index.js index 57c3b1ff..ba723f84 100644 --- a/src/main/index.js +++ b/src/main/index.js @@ -31,6 +31,11 @@ function createWindow () { } }) + if (process.env.NODE_ENV === 'production') { + // No menu bar in production + mainWindow.removeMenu() + } + mainWindow.loadURL(winURL) // Open dev tools initially when in development mode