rename route
This commit is contained in:
parent
722c4ddec7
commit
a6bee3c538
@ -41,6 +41,9 @@ async function checkLeaderboard(url, steamId) {
|
|||||||
"X-Requested-With": "BeatSaber Overlay",
|
"X-Requested-With": "BeatSaber Overlay",
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
if (data.status === 429) {
|
||||||
|
return true; // Just assume it's true is we are rate limited
|
||||||
|
}
|
||||||
const json = await data.json();
|
const json = await data.json();
|
||||||
|
|
||||||
return !!json.pp;
|
return !!json.pp;
|
Reference in New Issue
Block a user