Don't auto-open devtools in prod

This commit is contained in:
lilia 2017-04-05 11:42:30 -07:00 committed by Scott Nonnenberg
parent e112217095
commit 449c3e2428
No known key found for this signature in database
GPG Key ID: A4931C09644C654B
1 changed files with 4 additions and 2 deletions

View File

@ -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 () {