Don't auto open developer tools

This commit is contained in:
Jonatan Heyman 2023-01-13 01:40:35 +01:00
parent a8bbc8a9a0
commit d1b61ce899

View File

@ -58,9 +58,10 @@ async function createWindow() {
if (process.env.VITE_DEV_SERVER_URL) { // electron-vite-vue#298
win.loadURL(url)
// Open devTool if the app is not packaged
win.webContents.openDevTools()
//win.webContents.openDevTools()
} else {
win.loadFile(indexHtml)
//win.webContents.openDevTools()
}
// Test actively push message to the Electron-Renderer