aboutsummaryrefslogtreecommitdiff
path: root/main.js
diff options
context:
space:
mode:
authorSaúl Ibarra Corretgé <s@saghul.net>2020-06-02 09:57:34 +0200
committerSaúl Ibarra Corretgé <s@saghul.net>2020-06-02 09:57:34 +0200
commit9d6eda921f18dbcd21ab1e53d6ee8fa37a814c5b (patch)
treed022df79c1def7a51422b860a995e3e1d824c1bd /main.js
parentf42622bf4748238548046597201659807e2f8cc8 (diff)
Enable DevTools also on release builds
Fixes: https://github.com/jitsi/jitsi-meet-electron/issues/371
Diffstat (limited to 'main.js')
-rw-r--r--main.js10
1 files changed, 8 insertions, 2 deletions
diff --git a/main.js b/main.js
index 623049d..35638a0 100644
--- a/main.js
+++ b/main.js
@@ -6,6 +6,7 @@ const {
app,
shell
} = require('electron');
+const debug = require('electron-debug');
const isDev = require('electron-is-dev');
const { autoUpdater } = require('electron-updater');
const windowStateKeeper = require('electron-window-state');
@@ -33,13 +34,18 @@ app.allowRendererProcessReuse = false;
autoUpdater.logger = require('electron-log');
autoUpdater.logger.transports.file.level = 'info';
+// Enable DevTools also on release builds to help troubleshoot issues. Don't
+// show them automatically though.
+debug({
+ isEnabled: true,
+ showDevTools: false
+});
+
/**
* When in development mode:
- * - Load debug utilities (don't open the DevTools window by default though)
* - Enable automatic reloads
*/
if (isDev) {
- require('electron-debug')({ showDevTools: false });
require('electron-reload')(path.join(__dirname, 'build'));
}