Skip to content

Commit

Permalink
Disable web security warnings
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
artemave committed Jul 2, 2019
1 parent cc92852 commit 5e73d56
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions renderer/run.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
const { ipcRenderer: ipc } = require('electron')
const { files, ...opts } = window.__args__

process.env.ELECTRON_DISABLE_SECURITY_WARNINGS = 'true'

if (!opts.interactive) {
require('./console')
}
Expand Down

0 comments on commit 5e73d56

Please sign in to comment.