Browse Source

小调整。

pull/360/head
王良 2 months ago
parent
commit
3c7c10e850
  1. 4
      packages/gui/src/background.js

4
packages/gui/src/background.js

@ -186,7 +186,9 @@ function createWindow (startHideWindow) {
if (process.env.WEBPACK_DEV_SERVER_URL) {
// Load the url of the dev server if in development mode
win.loadURL(process.env.WEBPACK_DEV_SERVER_URL)
if (!process.env.IS_TEST) openDevTools()
if (!process.env.IS_TEST) {
setTimeout(openDevTools, 2000)
}
} else {
createProtocol('app')
// Load the index.html when not in development

Loading…
Cancel
Save