From 62f1efe16dfac1841d10f30d376f373f795bb12e Mon Sep 17 00:00:00 2001 From: barak Date: Wed, 14 Aug 2024 13:40:21 +0300 Subject: [PATCH] Open devtools only in development --- src/main/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/index.ts b/src/main/index.ts index f665b16..01773b9 100644 --- a/src/main/index.ts +++ b/src/main/index.ts @@ -21,7 +21,7 @@ function createWindow(): void { } }) - if (process.env.NODE_ENV !== 'production') { + if (process.env.NODE_ENV === 'development') { mainWindow.webContents.openDevTools() }