Skip to content

Commit 4d167ee

Browse files
committed
add error handler
1 parent c04a731 commit 4d167ee

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
@@ -153,6 +153,11 @@ export class Replay implements Integration {
153153
// collect fonts, but be aware that `sentry.io` needs to be an allowed
154154
// origin for playback
155155
collectFonts: true,
156+
errorHandler: (err) => {
157+
// @ts-ignore Accessing unknown property
158+
err.__rrweb__ = true;
159+
return true;
160+
}
156161
};
157162

158163
this._initialOptions = {

0 commit comments

Comments
 (0)