disable dev mode security warnings

+ yarn lock update for 2.0.6 (it was already the version resolved previously)
This commit is contained in:
Thomas Zarebczan 2018-08-08 12:53:33 -04:00 committed by Sean Yesmunt
parent 5e8d8e8710
commit 364782023f
2 changed files with 4 additions and 1 deletions

View file

@ -58,6 +58,9 @@ if (isDev) {
app.commandLine.appendSwitch('ignore-gpu-blacklist'); app.commandLine.appendSwitch('ignore-gpu-blacklist');
app.commandLine.appendSwitch('--disable-gpu-process-crash-limit'); app.commandLine.appendSwitch('--disable-gpu-process-crash-limit');
app.disableDomainBlockingFor3DAPIs(); app.disableDomainBlockingFor3DAPIs();
// Disable security warnings in dev mode - https://github.com/electron/electron/blob/master/docs/tutorial/security.md#electron-security-warnings
process.env.ELECTRON_DISABLE_SECURITY_WARNINGS = true;
} }
app.on('ready', async () => { app.on('ready', async () => {

View file

@ -3173,7 +3173,7 @@ electron-window-state@^4.1.1:
jsonfile "^2.2.3" jsonfile "^2.2.3"
mkdirp "^0.5.1" mkdirp "^0.5.1"
electron@^2.0.5: electron@^2.0.6:
version "2.0.6" version "2.0.6"
resolved "https://registry.yarnpkg.com/electron/-/electron-2.0.6.tgz#8e5c1bd2ebc08fa7a6ee906de3753c1ece9d7300" resolved "https://registry.yarnpkg.com/electron/-/electron-2.0.6.tgz#8e5c1bd2ebc08fa7a6ee906de3753c1ece9d7300"
dependencies: dependencies: