Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit a077d16

Browse files
committedMay 23, 2025
guard against it
1 parent 3d0006b commit a077d16

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎packages/browser/src/tracing/browserTracingIntegration.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ export const browserTracingIntegration = ((_options: Partial<BrowserTracingOptio
328328

329329
let lastClickTimestamp: number | undefined;
330330

331-
if (detectRedirects) {
331+
if (detectRedirects && optionalWindowDocument) {
332332
addEventListener('click', () => (lastClickTimestamp = timestampInSeconds()), { capture: true, passive: true });
333333
}
334334

0 commit comments

Comments
 (0)
Please sign in to comment.