Don't auto-open devtools in prod

pull/749/head
lilia 8 years ago committed by Scott Nonnenberg
parent e112217095
commit 449c3e2428
No known key found for this signature in database
GPG Key ID: A4931C09644C654B

@ -68,8 +68,10 @@ function createWindow () {
}
}))
// Open the DevTools.
mainWindow.webContents.openDevTools()
if (NODE_ENV === 'development') {
// Open the DevTools.
mainWindow.webContents.openDevTools()
}
// Emitted when the window is closed.
mainWindow.on('closed', function () {

Loading…
Cancel
Save