From b856ed32e45038cbcd6543352df7156288a89622 Mon Sep 17 00:00:00 2001 From: Pliable Pixels Date: Thu, 31 Oct 2019 13:23:54 -0400 Subject: nits --- electron_js/main.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'electron_js/main.js') diff --git a/electron_js/main.js b/electron_js/main.js index ba107fee..4b2a2c1e 100644 --- a/electron_js/main.js +++ b/electron_js/main.js @@ -141,6 +141,11 @@ function createWindow() { win.webContents.session.setProxy({proxyRules:argv.proxy}, function() {}); } + if (argv.debug) { + // Open the DevTools. + win.webContents.openDevTools(); + } + //win.webContents.openDevTools(); // and load the index.html of the app. const startUrl = process.env.ELECTRON_START_URL || url.format({ @@ -246,8 +251,7 @@ if (process.platform === 'darwin') { const menu = Menu.buildFromTemplate(template); Menu.setApplicationMenu(menu); -// Open the DevTools. -//win.webContents.openDevTools(); + // Emitted when the window is closed. win.on('closed', () => { // Dereference the window object, usually you would store windows -- cgit v1.2.3