Skip to content

Commit

Permalink
remove Devtool when production
Browse files Browse the repository at this point in the history
  • Loading branch information
kyohei8 committed May 17, 2017
1 parent 903be84 commit fc9893e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,10 @@ function createWindow () {
slashes: true
}))

// Open the DevTools.
mainWindow.webContents.openDevTools()
if(process.env.HOT){
// Open the DevTools.
mainWindow.webContents.openDevTools()
}

// ウィンドウが閉じられたとき
mainWindow.on('closed', function () {
Expand Down

0 comments on commit fc9893e

Please sign in to comment.