From ef704a9d453ad70c4403dcc9dbe1bac2f264649f Mon Sep 17 00:00:00 2001 From: buvta <12312540+buvta@users.noreply.github.com> Date: Sat, 19 Dec 2020 13:27:07 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A6=81=E7=94=A8allowRunningInsecureContent?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/background.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/background.js b/src/background.js index f786e85..e59233b 100644 --- a/src/background.js +++ b/src/background.js @@ -22,7 +22,8 @@ function createWindow () { webPreferences: { webSecurity: false, enableRemoteModule: true, - nodeIntegration: process.env.ELECTRON_NODE_INTEGRATION + nodeIntegration: process.env.ELECTRON_NODE_INTEGRATION, + allowRunningInsecureContent: false } })