Add debug option --debug

This commit is contained in:
Thomas Nordquist
2019-01-15 23:54:03 +01:00
parent 830dd31f06
commit 5eb6f41189

View File

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