Skip to content

Commit b31cf70

Browse files
committed
ref(replay): Streamline rrweb internal error check
I think we don't really need this anymore, and this doesn't even work anyhow in any minified scenario, so we can safe these bundle bytes & also the work to check this on each error.
1 parent 43ddbbe commit b31cf70

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

packages/replay/src/util/isRrwebError.ts

+1-8
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,5 @@ export function isRrwebError(event: Event, hint: EventHint): boolean {
1313
return true;
1414
}
1515

16-
// Check if any exception originates from rrweb
17-
return event.exception.values.some(exception => {
18-
if (!exception.stacktrace || !exception.stacktrace.frames || !exception.stacktrace.frames.length) {
19-
return false;
20-
}
21-
22-
return exception.stacktrace.frames.some(frame => frame.filename && frame.filename.includes('/rrweb/src/'));
23-
});
16+
return false;
2417
}

0 commit comments

Comments
 (0)