diff options
| author | Pliable Pixels <pliablepixels@gmail.com> | 2019-10-31 13:23:54 -0400 |
|---|---|---|
| committer | Pliable Pixels <pliablepixels@gmail.com> | 2019-10-31 13:23:54 -0400 |
| commit | b856ed32e45038cbcd6543352df7156288a89622 (patch) | |
| tree | fffcfe1f68fb3b070ea6264d03c4069c92f15d3a /electron_js | |
| parent | 7a6b426ab2f6309a3be276166b395198e96c445e (diff) | |
nits
Diffstat (limited to 'electron_js')
| -rw-r--r-- | electron_js/main.js | 8 |
1 files changed, 6 insertions, 2 deletions
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 |
