Skip to content

Commit 411aacd

Browse files
committed
add error handler
1 parent 31e8a6f commit 411aacd

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
@@ -157,6 +157,11 @@ export class Replay implements Integration {
157157
// collect fonts, but be aware that `sentry.io` needs to be an allowed
158158
// origin for playback
159159
collectFonts: true,
160+
errorHandler: (err) => {
161+
// @ts-ignore Accessing unknown property
162+
err.__rrweb__ = true;
163+
return true;
164+
}
160165
};
161166

162167
this._initialOptions = {

0 commit comments

Comments
 (0)