mirror of
https://github.com/electron-vite/electron-vite-vue
synced 2025-02-26 13:00:09 +08:00
Merge pull request #216 from SaberA1ter/main
feature: 在应用未打包时自动打开 devTools
This commit is contained in:
commit
644a9f6b3e
@ -50,7 +50,8 @@ async function createWindow() {
|
|||||||
win.loadFile(indexHtml)
|
win.loadFile(indexHtml)
|
||||||
} else {
|
} else {
|
||||||
win.loadURL(url)
|
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
|
// Test actively push message to the Electron-Renderer
|
||||||
|
Loading…
x
Reference in New Issue
Block a user