aboutsummaryrefslogtreecommitdiffstats
path: root/src/pages/CallbackPage.tsx
diff options
context:
space:
mode:
authorGravatar Joe Banks <[email protected]>2020-10-12 18:01:50 +0100
committerGravatar GitHub <[email protected]>2020-10-12 18:01:50 +0100
commit24d2daa318c412ffb0ec7c67328bd3fb5d6afe30 (patch)
tree91b9ac7c643b5698ad0b75ddfac8524545658e5d /src/pages/CallbackPage.tsx
parentMerge pull request #24 from python-discord/sentry/remove-tracing (diff)
parentUse 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.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");