mirror of
https://codeberg.org/ashley/poke
synced 2026-04-19 16:47:59 +00:00
use while in fetchData function
This commit is contained in:
@@ -81,7 +81,7 @@ class InnerTubePokeVidious {
|
|||||||
*/
|
*/
|
||||||
const response = await fetch(url, { headers });
|
const response = await fetch(url, { headers });
|
||||||
|
|
||||||
if (response.status === 500) {
|
while (response.status === 500) {
|
||||||
// If status is 500, fetch again
|
// If status is 500, fetch again
|
||||||
console.log("Retrying due to status 500...");
|
console.log("Retrying due to status 500...");
|
||||||
return fetchData(url, headers);
|
return fetchData(url, headers);
|
||||||
|
|||||||
Reference in New Issue
Block a user