From ed50abf9e86596b472f03df37b1a0c962606a486 Mon Sep 17 00:00:00 2001 From: schneefux Date: Sat, 4 Jan 2025 19:03:55 +0100 Subject: [PATCH] web: Ignore ad errors in Sentry --- web/renderer/sentry.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/web/renderer/sentry.ts b/web/renderer/sentry.ts index a447d7c2..26964cec 100644 --- a/web/renderer/sentry.ts +++ b/web/renderer/sentry.ts @@ -79,6 +79,11 @@ export function initSentry(dsn: string, app: App, router?: Router) { return null } + // ignore errors originating from ad manager script + if (error && error.stack && error.stack.includes('hb.vntsm.com')) { + return null + } + return event }, })