From 5eb6f41189a93c590f252104b5fa60864892e372 Mon Sep 17 00:00:00 2001 From: Thomas Nordquist Date: Tue, 15 Jan 2019 23:54:03 +0100 Subject: [PATCH] Add debug option --debug --- electron.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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()