mirror of
https://codeberg.org/ashley/poke.git
synced 2024-11-10 08:58:24 +01:00
use while
in fetchData
function
This commit is contained in:
parent
0f29d22f50
commit
a27c53e913
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue