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 | |
| parent | 7a6b426ab2f6309a3be276166b395198e96c445e (diff) | |
nits
| -rw-r--r-- | electron_js/main.js | 8 | ||||
| -rw-r--r-- | package.json | 4 |
2 files changed, 8 insertions, 4 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 diff --git a/package.json b/package.json index e1cead3a..93306d8e 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "zmninjapro", "description": "Home security mobile app for ZoneMinder", - "version":"1.3.079", + "version": "1.3.079", "displayName": "zmNinja", "author": "Pliable Pixels", "license": "custom see LICENSE.md", @@ -191,4 +191,4 @@ ] } } -} +}
\ No newline at end of file |
