Skip to content

Commit 5e73d56

Browse files
committed
Disable web security warnings
Electron-mocha renderer is insecure by default (it runs with node runtime turned on) and as such always produce a bunch of security warnings. Since there is nothing that can be done about those warnings, they are just noise.
1 parent cc92852 commit 5e73d56

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

renderer/run.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
const { ipcRenderer: ipc } = require('electron')
22
const { files, ...opts } = window.__args__
33

4+
process.env.ELECTRON_DISABLE_SECURITY_WARNINGS = 'true'
5+
46
if (!opts.interactive) {
57
require('./console')
68
}

0 commit comments

Comments
 (0)