Skip to content

Commit

Permalink
damn you IE
Browse files Browse the repository at this point in the history
  • Loading branch information
pauldambra committed Mar 5, 2024
1 parent f2bdc4c commit 7055c9e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/extensions/replay/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7055c9e

Please sign in to comment.