fix reviewdb auth not working on userscript (#2194)

This commit is contained in:
Manti 2024-02-20 21:13:25 +03:00 committed by GitHub
parent 604f4c49af
commit f922f0bc0d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 9 additions and 9 deletions

View file

@ -59,7 +59,7 @@ export function authorize(callback?: any) {
const url = new URL(response.location);
url.searchParams.append("clientMod", "vencord");
const res = await fetch(url, {
headers: new Headers({ Accept: "application/json" })
headers: { Accept: "application/json" }
});
if (!res.ok) {