From e3b30359bfcbb793b6b6c3a44982f880947a174c Mon Sep 17 00:00:00 2001 From: fabio286 Date: Fri, 31 Jan 2025 13:33:42 +0100 Subject: [PATCH] refactor: disable auto opening dev tools in development mode --- src/main/main.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/main.ts b/src/main/main.ts index 03a77d73..16995091 100644 --- a/src/main/main.ts +++ b/src/main/main.ts @@ -128,8 +128,8 @@ app.on('ready', async () => { if (isWindows) mainWindow.show(); - if (isDevelopment && !isWindows)// Because on Windows you can open devtools from title-bar - mainWindow.webContents.openDevTools(); + // if (isDevelopment && !isWindows) + // mainWindow.webContents.openDevTools(); process.on('uncaughtException', error => { mainWindow.webContents.send('unhandled-exception', error);