Skip to content

Commit 7bf69ef

Browse files
committed
fix(browser): Call original function on early return from patched history API
1 parent e5c6ab0 commit 7bf69ef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/browser-utils/src/instrument/history.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ function instrumentHistory(): void {
5151
lastHref = to;
5252

5353
if (from === to) {
54-
return;
54+
return originalHistoryFunction.apply(this, args);
5555
}
5656

5757
const handlerData = { from, to } satisfies HandlerDataHistory;

0 commit comments

Comments
 (0)