aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Joe Banks <[email protected]>2020-10-12 17:57:37 +0100
committerGravatar Joe Banks <[email protected]>2020-10-12 17:57:37 +0100
commitb09dcde005f6d31a68d406e34f96e95fcb6abc75 (patch)
tree91b9ac7c643b5698ad0b75ddfac8524545658e5d
parentAdd test setup file (diff)
Use location instead of document.location in callback
-rw-r--r--src/pages/CallbackPage.tsx2
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");