From c8b1b4d3948101153366a0bd97a860f94f0cbd0a Mon Sep 17 00:00:00 2001 From: jeffvli Date: Sat, 20 May 2023 20:21:14 -0700 Subject: [PATCH] Update electron web preferences --- src/main/main.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/main.ts b/src/main/main.ts index db0b7962..cb5efe18 100644 --- a/src/main/main.ts +++ b/src/main/main.ts @@ -189,6 +189,7 @@ const createWindow = async () => { minWidth: 640, show: false, webPreferences: { + allowRunningInsecureContent: !!store.get('ignore_ssl'), backgroundThrottling: false, contextIsolation: true, devTools: true, @@ -196,7 +197,7 @@ const createWindow = async () => { preload: app.isPackaged ? path.join(__dirname, 'preload.js') : path.join(__dirname, '../../.erb/dll/preload.js'), - webSecurity: store.get('ignore_cors') ? false : undefined, + webSecurity: !store.get('ignore_cors'), }, width: 1440, });