Skip to content

Commit

Permalink
fix(SentryError): Filter out hidden url errors caused by safari exten…
Browse files Browse the repository at this point in the history
…sions (#2014)
  • Loading branch information
kotva006 authored May 1, 2024
1 parent 1af2e10 commit 3bd84f1
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions assets/js/sentry-filter.js
Original file line number Diff line number Diff line change
Expand Up @@ -427,6 +427,14 @@ const beforeSend = (event, hint) => {
}
}

// filter out webkit errors caused by safari extensions
if (
event.contexts?.browser?.name?.includes("Safari") &&
event.culprit?.includes("webkit-masked-url")
) {
return null;
}

return event;
};

Expand Down

0 comments on commit 3bd84f1

Please sign in to comment.