change handler check

[ci skip]
This commit is contained in:
Core 2022-09-11 03:38:28 +01:00
parent c33f8687f2
commit 3fa9cde25e
No known key found for this signature in database
GPG key ID: 2AB8327FBA02D1C0

View file

@ -1486,7 +1486,7 @@ export class BrowserWindow {
// Set window Handler // Set window Handler
BrowserWindow.win.webContents.setWindowOpenHandler((x: any) => { BrowserWindow.win.webContents.setWindowOpenHandler((x: any) => {
if (x.url.includes("apple") || x.url.includes("localhost")) { if (x.url.includes("apple.com") || x.url.includes("localhost")) {
return { action: "allow" }; return { action: "allow" };
} }
shell.openExternal(x.url).catch(console.error); shell.openExternal(x.url).catch(console.error);