From a1f62e2704bdcec19f001b99da3e2106566b7c11 Mon Sep 17 00:00:00 2001 From: aaronshiel Date: Wed, 7 Feb 2024 17:27:55 -0800 Subject: [PATCH] small fix --- client/src/pages/index.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/client/src/pages/index.tsx b/client/src/pages/index.tsx index ab116014..06897cfe 100644 --- a/client/src/pages/index.tsx +++ b/client/src/pages/index.tsx @@ -535,7 +535,9 @@ function IndexPage(props: { }); updateLocalStorageUserData(newUserData); } - console.log(document.referrer); + if (typeof window !== "undefined") { + console.log(document.referrer); + } return (