Don't auto-open devtools in prod
This commit is contained in:
parent
e112217095
commit
449c3e2428
1 changed files with 4 additions and 2 deletions
6
main.js
6
main.js
|
@ -68,8 +68,10 @@ function createWindow () {
|
||||||
}
|
}
|
||||||
}))
|
}))
|
||||||
|
|
||||||
// Open the DevTools.
|
if (NODE_ENV === 'development') {
|
||||||
mainWindow.webContents.openDevTools()
|
// Open the DevTools.
|
||||||
|
mainWindow.webContents.openDevTools()
|
||||||
|
}
|
||||||
|
|
||||||
// Emitted when the window is closed.
|
// Emitted when the window is closed.
|
||||||
mainWindow.on('closed', function () {
|
mainWindow.on('closed', function () {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue