aboutsummaryrefslogtreecommitdiff
path: root/main.js
diff options
context:
space:
mode:
authorChristophe HAMERLING <chamerling@linagora.com>2020-06-03 15:54:29 +0200
committerSaúl Ibarra Corretgé <s@saghul.net>2020-06-09 11:38:06 +0200
commit212d8cb92b3e0c69f2adca89cab8c8cfd2eccc8a (patch)
tree540db6a9abcdb4da6bc614803b0c46b23086f175 /main.js
parent69aea45f3213b9279a2d8704c5a07078e0d12946 (diff)
Add SHOW_DEV_TOOLS environment variable
Diffstat (limited to 'main.js')
-rw-r--r--main.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/main.js b/main.js
index 0e4f760..285c84f 100644
--- a/main.js
+++ b/main.js
@@ -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
});
/**