From b09dcde005f6d31a68d406e34f96e95fcb6abc75 Mon Sep 17 00:00:00 2001
From: Joe Banks <joseph@josephbanks.me>
Date: Mon, 12 Oct 2020 17:57:37 +0100
Subject: Use location instead of document.location in callback

---
 src/pages/CallbackPage.tsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'src/pages/CallbackPage.tsx')

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");
 
-- 
cgit v1.2.3

