From 364782023f300701b1bfa4f8381aa169f602a91b Mon Sep 17 00:00:00 2001 From: Thomas Zarebczan Date: Wed, 8 Aug 2018 12:53:33 -0400 Subject: [PATCH] disable dev mode security warnings + yarn lock update for 2.0.6 (it was already the version resolved previously) --- src/main/index.js | 3 +++ yarn.lock | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main/index.js b/src/main/index.js index 94ea0d7b0..2f19fcd97 100644 --- a/src/main/index.js +++ b/src/main/index.js @@ -58,6 +58,9 @@ if (isDev) { app.commandLine.appendSwitch('ignore-gpu-blacklist'); app.commandLine.appendSwitch('--disable-gpu-process-crash-limit'); 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 () => { diff --git a/yarn.lock b/yarn.lock index 038e9453f..4e3f7c24d 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3173,7 +3173,7 @@ electron-window-state@^4.1.1: jsonfile "^2.2.3" mkdirp "^0.5.1" -electron@^2.0.5: +electron@^2.0.6: version "2.0.6" resolved "https://registry.yarnpkg.com/electron/-/electron-2.0.6.tgz#8e5c1bd2ebc08fa7a6ee906de3753c1ece9d7300" dependencies: