Skip to content

Commit 347bfde

Browse files
author
西瓜°
committed
remove DevTools
1 parent cadda61 commit 347bfde

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/main/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,8 @@ ipcMain.handle("open-win", (event, arg) => {
8383
})
8484
} else {
8585
// 🚧 Use ['ENV_NAME'] avoid vite:define plugin
86-
const url = `http://${process.env["VITE_DEV_SERVER_HOST"]}:${process.env["VITE_DEV_SERVER_PORT"]}/#${arg.url}`
86+
const url = `http://${process.env["VITE_DEV_SERVER_HOST"]}:${process.env["VITE_DEV_SERVER_PORT"]}/#${arg}`
8787
childWindow.loadURL(url);
88-
childWindow.webContents.openDevTools({ mode: "undocked", activate: true })
88+
// childWindow.webContents.openDevTools({ mode: "undocked", activate: true })
8989
}
9090
});

0 commit comments

Comments
 (0)