Skip to content

Commit

Permalink
fix: Remove local network access switch and add insecure content loading
Browse files Browse the repository at this point in the history
  • Loading branch information
kangfenmao committed Feb 9, 2025
1 parent 0a3ad04 commit 8c32f51
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
5 changes: 0 additions & 5 deletions src/main/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down
3 changes: 2 additions & 1 deletion src/main/services/WindowService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@ export class WindowService {
preload: join(__dirname, '../preload/index.js'),
sandbox: false,
webSecurity: false,
webviewTag: true
webviewTag: true,
allowRunningInsecureContent: true
}
})

Expand Down

0 comments on commit 8c32f51

Please sign in to comment.