Skip to content

Commit 7c5e548

Browse files
committed
add type + comments
1 parent 54c3d8b commit 7c5e548

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/replay/src/integration.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,8 +155,8 @@ 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
158+
errorHandler: (err: Error) => {
159+
// @ts-ignore ASet this so that replay SDK can ignore errors originating from rrweb
160160
err.__rrweb__ = true;
161161
return true;
162162
}

0 commit comments

Comments
 (0)