diff options
author | 2020-10-12 18:01:50 +0100 | |
---|---|---|
committer | 2020-10-12 18:01:50 +0100 | |
commit | 24d2daa318c412ffb0ec7c67328bd3fb5d6afe30 (patch) | |
tree | 91b9ac7c643b5698ad0b75ddfac8524545658e5d /src/pages/CallbackPage.tsx | |
parent | Merge pull request #24 from python-discord/sentry/remove-tracing (diff) | |
parent | Use location instead of document.location in callback (diff) |
Merge pull request #25 from python-discord/tests/increase-coverage
Increase test coverage
Diffstat (limited to 'src/pages/CallbackPage.tsx')
-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"); |