rename route

This commit is contained in:
Liam 2022-10-19 17:20:01 +01:00
parent 722c4ddec7
commit a6bee3c538

View File

@ -41,6 +41,9 @@ async function checkLeaderboard(url, steamId) {
"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();
return !!json.pp;