change handler check
[ci skip]
This commit is contained in:
parent
c33f8687f2
commit
3fa9cde25e
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue