diff options
Diffstat (limited to 'src/plugins/reviewDB/utils.tsx')
-rw-r--r-- | src/plugins/reviewDB/utils.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/reviewDB/utils.tsx b/src/plugins/reviewDB/utils.tsx index 67d043d..da800b0 100644 --- a/src/plugins/reviewDB/utils.tsx +++ b/src/plugins/reviewDB/utils.tsx @@ -50,9 +50,9 @@ export function authorize(callback?: any) { permissions={0n} clientId="915703782174752809" cancelCompletesFlow={false} - callback={async (u: string) => { + callback={async (response: any) => { try { - const url = new URL(u); + const url = new URL(response.location); url.searchParams.append("clientMod", "vencord"); const res = await fetch(url, { headers: new Headers({ Accept: "application/json" }) |