From 7055c9e2e13e497a9fb3e1c17b9642092b0cc443 Mon Sep 17 00:00:00 2001 From: Paul D'Ambra Date: Tue, 5 Mar 2024 14:45:18 +0000 Subject: [PATCH] damn you IE --- src/extensions/replay/config.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/extensions/replay/config.ts b/src/extensions/replay/config.ts index 185346cb4..694858475 100644 --- a/src/extensions/replay/config.ts +++ b/src/extensions/replay/config.ts @@ -73,7 +73,7 @@ const POSTHOG_PATHS_TO_IGNORE = ['/s/', '/e/', '/i/'] // because calls to PostHog would be reported using a call to PostHog which would be reported.... const ignorePostHogPaths = (data: CapturedNetworkRequest): CapturedNetworkRequest | undefined => { const url = convertToURL(data.name) - if (url && url.pathname && POSTHOG_PATHS_TO_IGNORE.some((path) => url.pathname.startsWith(path))) { + if (url && url.pathname && POSTHOG_PATHS_TO_IGNORE.some((path) => url.pathname.indexOf(path) === 0)) { return undefined } return data