We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 78b5842 commit a9067a0Copy full SHA for a9067a0
1 file changed
packages/core/src/js/replay/mobilereplay.ts
@@ -308,8 +308,9 @@ export const mobileReplayIntegration = (initOptions: MobileReplayOptions = defau
308
const clientOptions = client.getOptions();
309
const originalBeforeSend = clientOptions.beforeSend;
310
clientOptions.beforeSend = async (event: ErrorEvent, hint: EventHint): Promise<ErrorEvent | null> => {
311
+ var result = event;
312
if (originalBeforeSend) {
- const result = await originalBeforeSend(event, hint);
313
+ result = await originalBeforeSend(event, hint);
314
if (result === null) {
315
// Event was dropped by user's beforeSend, don't capture replay
316
return null;
0 commit comments