Skip to content

Commit 975c421

Browse files
committed
add error handler
1 parent 6c955ab commit 975c421

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

packages/replay/src/integration.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,11 @@ export class Replay implements Integration {
155155
// collect fonts, but be aware that `sentry.io` needs to be an allowed
156156
// origin for playback
157157
collectFonts: true,
158+
errorHandler: (err) => {
159+
// @ts-ignore Accessing unknown property
160+
err.__rrweb__ = true;
161+
return true;
162+
}
158163
};
159164

160165
this._initialOptions = {

0 commit comments

Comments
 (0)