Skip to content

Commit

Permalink
Anticipate searchParams===null in example code
Browse files Browse the repository at this point in the history
  • Loading branch information
unitof committed May 23, 2024
1 parent 343d474 commit 137f19f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ function TrackPageView() {
if (!pathname) return;

trackPageview({
url: pathname + searchParams.toString(),
url: pathname + searchParams?.toString(),
referrer: document.referrer
});
}, [pathname, searchParams]);
Expand Down

0 comments on commit 137f19f

Please sign in to comment.