Add debug option --debug
This commit is contained in:
@@ -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()
|
||||||
|
|||||||
Reference in New Issue
Block a user