diff --git a/electron.js b/electron.js index 3e64a37..3d26cd3 100644 --- a/electron.js +++ b/electron.js @@ -33,8 +33,9 @@ function createWindow () { mainWindow.loadFile('app/index.html') // Open the DevTools. - // mainWindow.webContents.openDevTools() - + if (process.argv[2] === '--debug') { + mainWindow.webContents.openDevTools() + } // Emitted when the window is closed. mainWindow.on('close', function () { connectionManager.closeAllConnections()