mirror of
https://github.com/heyman/heynote.git
synced 2024-11-26 01:44:05 +01:00
Don't auto open developer tools
This commit is contained in:
parent
a8bbc8a9a0
commit
d1b61ce899
@ -58,9 +58,10 @@ async function createWindow() {
|
|||||||
if (process.env.VITE_DEV_SERVER_URL) { // electron-vite-vue#298
|
if (process.env.VITE_DEV_SERVER_URL) { // electron-vite-vue#298
|
||||||
win.loadURL(url)
|
win.loadURL(url)
|
||||||
// Open devTool if the app is not packaged
|
// Open devTool if the app is not packaged
|
||||||
win.webContents.openDevTools()
|
//win.webContents.openDevTools()
|
||||||
} else {
|
} else {
|
||||||
win.loadFile(indexHtml)
|
win.loadFile(indexHtml)
|
||||||
|
//win.webContents.openDevTools()
|
||||||
}
|
}
|
||||||
|
|
||||||
// Test actively push message to the Electron-Renderer
|
// Test actively push message to the Electron-Renderer
|
||||||
|
Loading…
Reference in New Issue
Block a user