fix: fix conflict with adguard

This commit is contained in:
JellyBrick
2024-10-14 18:06:08 +09:00
parent 534aeb163a
commit 95acbe2b65

View File

@ -560,7 +560,11 @@ app.once('browser-window-created', (_event, win) => {
console.log(log);
}
if (errorCode !== -3) {
if (
errorCode !== -3 &&
// Workaround for #2435
!new URL(validatedURL).hostname.includes('doubleclick.net')
) {
// -3 is a false positive
win.webContents.send('log', log);
win.webContents.loadFile(ErrorHtmlAsset);