diff options
author | Saúl Ibarra Corretgé <s@saghul.net> | 2020-06-02 09:57:34 +0200 |
---|---|---|
committer | Saúl Ibarra Corretgé <s@saghul.net> | 2020-06-02 09:57:34 +0200 |
commit | 9d6eda921f18dbcd21ab1e53d6ee8fa37a814c5b (patch) | |
tree | d022df79c1def7a51422b860a995e3e1d824c1bd /main.js | |
parent | f42622bf4748238548046597201659807e2f8cc8 (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.js | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -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')); } |