1
Fork 0

use while in fetchData function

This commit is contained in:
theycallhermax 2024-04-20 18:23:08 -04:00
parent 0f29d22f50
commit a27c53e913

View file

@ -81,7 +81,7 @@ class InnerTubePokeVidious {
*/
const response = await fetch(url, { headers });
if (response.status === 500) {
while (response.status === 500) {
// If status is 500, fetch again
console.log("Retrying due to status 500...");
return fetchData(url, headers);