Skip to content

Commit 759fa70

Browse files
committed
add comment for afterSendHandler
1 parent a1d18c9 commit 759fa70

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/replay/src/coreHandlers/handleGlobalEvent.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,10 @@ export function handleGlobalEventListener(
4848
});
4949
}
5050

51+
// In cases where a custom client is used that does not support the new hooks (yet),
52+
// we manually call this hook method here
5153
if (afterSendHandler) {
52-
// Pretend the error had a 200 response so we capture it
54+
// Pretend the error had a 200 response so we always capture it
5355
afterSendHandler(event, { statusCode: 200 });
5456
}
5557

0 commit comments

Comments
 (0)