Skip to content

Commit 23088c5

Browse files
committed
add type + comments
1 parent 411aacd commit 23088c5

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
@@ -157,8 +157,8 @@ 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
160+
errorHandler: (err: Error) => {
161+
// @ts-ignore ASet this so that replay SDK can ignore errors originating from rrweb
162162
err.__rrweb__ = true;
163163
return true;
164164
}

0 commit comments

Comments
 (0)