From e89d820797693304282bbd6a8de3946815d2e0d6 Mon Sep 17 00:00:00 2001 From: yj <1336058017@qq.com> Date: Fri, 11 Oct 2024 17:50:58 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/main.js b/main.js index a416b71..2c29a81 100644 --- a/main.js +++ b/main.js @@ -413,6 +413,8 @@ function windowOperation(config) { child.setResizable(false) child.setMovable(false) mainWindow.setPosition(-999999, -999999); - child.webContents.openDevTools() + if (env === 'development') { + child.webContents.openDevTools() + } } } \ No newline at end of file