diff options
-rw-r--r-- | src/pages/CallbackPage.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pages/CallbackPage.tsx b/src/pages/CallbackPage.tsx index caa384f..d085d28 100644 --- a/src/pages/CallbackPage.tsx +++ b/src/pages/CallbackPage.tsx @@ -4,7 +4,7 @@ import { useState } from "react"; export default function CallbackPage() { const [hasSent, setHasSent] = useState(false); - const params = new URLSearchParams(document.location.search); + const params = new URLSearchParams(location.search); const code = params.get("code"); |