fix: Remove local network access switch and add insecure content loading
This commit is contained in:
parent
0a3ad04f12
commit
8c32f51892
@ -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()
|
||||
|
||||
|
||||
@ -61,7 +61,8 @@ export class WindowService {
|
||||
preload: join(__dirname, '../preload/index.js'),
|
||||
sandbox: false,
|
||||
webSecurity: false,
|
||||
webviewTag: true
|
||||
webviewTag: true,
|
||||
allowRunningInsecureContent: true
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user