mirror of
https://github.com/electron-vite/electron-vite-vue
synced 2025-01-19 03:46:35 +08:00
chore: 对于打开 devTools 以解除注释替代新增一行
This commit is contained in:
parent
aec9a41f66
commit
0d1fe635d3
@ -52,12 +52,10 @@ async function createWindow() {
|
||||
win.loadFile(indexHtml)
|
||||
} else {
|
||||
win.loadURL(url)
|
||||
// win.webContents.openDevTools()
|
||||
// Open devTool if the app is not packaged
|
||||
win.webContents.openDevTools()
|
||||
}
|
||||
|
||||
// Open devTool if the app is not packaged
|
||||
!isPackaged && win.webContents.openDevTools()
|
||||
|
||||
// Test actively push message to the Electron-Renderer
|
||||
win.webContents.on('did-finish-load', () => {
|
||||
win?.webContents.send('main-process-message', new Date().toLocaleString())
|
||||
|
Loading…
x
Reference in New Issue
Block a user