From 95acbe2b65d8e45182d943204e61f65caeea3650 Mon Sep 17 00:00:00 2001 From: JellyBrick Date: Mon, 14 Oct 2024 18:06:08 +0900 Subject: [PATCH] fix: fix conflict with adguard --- src/index.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index 1e0b93a6..afc4e2fb 100644 --- a/src/index.ts +++ b/src/index.ts @@ -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);