From 347bfde8a169428e39d9d02ed4df62ead95e1e6a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=A5=BF=E7=93=9C=C2=B0?= <8441078+i_melon@user.noreply.gitee.com> Date: Wed, 1 Jun 2022 01:04:14 +0800 Subject: [PATCH] remove DevTools --- packages/main/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/main/index.ts b/packages/main/index.ts index ac405ae..772d54a 100644 --- a/packages/main/index.ts +++ b/packages/main/index.ts @@ -83,8 +83,8 @@ ipcMain.handle("open-win", (event, arg) => { }) } else { // 🚧 Use ['ENV_NAME'] avoid vite:define plugin - const url = `http://${process.env["VITE_DEV_SERVER_HOST"]}:${process.env["VITE_DEV_SERVER_PORT"]}/#${arg.url}` + const url = `http://${process.env["VITE_DEV_SERVER_HOST"]}:${process.env["VITE_DEV_SERVER_PORT"]}/#${arg}` childWindow.loadURL(url); - childWindow.webContents.openDevTools({ mode: "undocked", activate: true }) + // childWindow.webContents.openDevTools({ mode: "undocked", activate: true }) } });