Merge pull request #216 from SaberA1ter/main

feature: 在应用未打包时自动打开 devTools
This commit is contained in:
草鞋没号 2022-07-27 07:38:23 +08:00 committed by GitHub
commit 644a9f6b3e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -50,7 +50,8 @@ async function createWindow() {
win.loadFile(indexHtml)
} else {
win.loadURL(url)
// win.webContents.openDevTools()
// Open devTool if the app is not packaged
win.webContents.openDevTools()
}
// Test actively push message to the Electron-Renderer