Skip to content

Commit

Permalink
Fix debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Nordquist committed Jan 15, 2019
1 parent 1eeaee0 commit ab6938c
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions electron.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const log = require('electron-log');
const { ConnectionManager, updateNotifier } = require('./backend/build/backend/src/index.js')
const fs = require('fs')
const path = require('path')
require('electron-debug')({enabled: true});
require('electron-debug')({enabled: process.argv[2] === '--debug'});

autoUpdater.logger = log;
autoUpdater.logger.transports.file.level = 'info';
Expand Down Expand Up @@ -33,10 +33,6 @@ function createWindow () {
// and load the index.html of the app.
mainWindow.loadFile('app/index.html')

// Open the DevTools.
if (process.argv[2] === '--debug') {
mainWindow.webContents.openDevTools()
}
// Emitted when the window is closed.
mainWindow.on('close', function () {
connectionManager.closeAllConnections()
Expand Down

0 comments on commit ab6938c

Please sign in to comment.