Skip to content

Commit

Permalink
add error handler
Browse files Browse the repository at this point in the history
  • Loading branch information
billyvg committed Aug 9, 2023
1 parent 6c955ab commit 975c421
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/replay/src/integration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,11 @@ export class Replay implements Integration {
// collect fonts, but be aware that `sentry.io` needs to be an allowed
// origin for playback
collectFonts: true,
errorHandler: (err) => {
// @ts-ignore Accessing unknown property
err.__rrweb__ = true;
return true;
}
};

this._initialOptions = {
Expand Down

0 comments on commit 975c421

Please sign in to comment.