diff options
author | 2020-10-12 17:57:37 +0100 | |
---|---|---|
committer | 2020-10-12 17:57:37 +0100 | |
commit | b09dcde005f6d31a68d406e34f96e95fcb6abc75 (patch) | |
tree | 91b9ac7c643b5698ad0b75ddfac8524545658e5d | |
parent | Add test setup file (diff) |
Use location instead of document.location in callback
-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"); |