diff --git a/src/main/index.ts b/src/main/index.ts index 3e368cf1..0f0c72cd 100644 --- a/src/main/index.ts +++ b/src/main/index.ts @@ -17,11 +17,6 @@ if (!app.requestSingleInstanceLock()) { // initialization and is ready to create browser windows. // Some APIs can only be used after this event occurs. - if (process.platform === 'darwin') { - // Enable local network access - app.commandLine.appendSwitch('enable-local-network-access') - } - app.whenReady().then(async () => { await updateUserDataPath() diff --git a/src/main/services/WindowService.ts b/src/main/services/WindowService.ts index 83c32863..560431f5 100644 --- a/src/main/services/WindowService.ts +++ b/src/main/services/WindowService.ts @@ -61,7 +61,8 @@ export class WindowService { preload: join(__dirname, '../preload/index.js'), sandbox: false, webSecurity: false, - webviewTag: true + webviewTag: true, + allowRunningInsecureContent: true } })