diff options
author | Christophe HAMERLING <chamerling@linagora.com> | 2020-06-03 15:54:29 +0200 |
---|---|---|
committer | Saúl Ibarra Corretgé <s@saghul.net> | 2020-06-09 11:38:06 +0200 |
commit | 212d8cb92b3e0c69f2adca89cab8c8cfd2eccc8a (patch) | |
tree | 540db6a9abcdb4da6bc614803b0c46b23086f175 /main.js | |
parent | 69aea45f3213b9279a2d8704c5a07078e0d12946 (diff) |
Add SHOW_DEV_TOOLS environment variable
Diffstat (limited to 'main.js')
-rw-r--r-- | main.js | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -22,6 +22,8 @@ const path = require('path'); const URL = require('url'); const config = require('./app/features/config'); +const showDevTools = Boolean(process.env.SHOW_DEV_TOOLS); + // We need this because of https://github.com/electron/electron/issues/18214 app.commandLine.appendSwitch('disable-site-isolation-trials'); @@ -51,7 +53,7 @@ contextMenu({ // show them automatically though. debug({ isEnabled: true, - showDevTools: false + showDevTools }); /** |