From 030a43fe3c798bb782f035319ee5565c283c991c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A3=AB=E5=AD=90=E2=98=80=EF=B8=8F?= <84996057@qq.com> Date: Mon, 22 Jan 2024 22:25:29 +0800 Subject: [PATCH] dev tools --- packages/main/src/windows/window.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/main/src/windows/window.ts b/packages/main/src/windows/window.ts index 2af81f4f..72c0b0d1 100644 --- a/packages/main/src/windows/window.ts +++ b/packages/main/src/windows/window.ts @@ -1,5 +1,4 @@ import { BrowserWindow, BrowserWindowConstructorOptions } from "electron"; -import isDev from "electron-is-dev"; export default class Window { window: BrowserWindow | null = null; @@ -28,7 +27,7 @@ export default class Window { if (!this.window) return; this.window.show(); - isDev && this.window.webContents.openDevTools(); + this.window.webContents.openDevTools(); }; windowClose = () => {