mirror of
https://codeberg.org/ashley/poke.git
synced 2024-11-10 05:48:36 +01:00
Merge pull request 'Use while
in fetchData
function' (#78) from theycallhermax/poke-fork:main into main
Reviewed-on: https://codeberg.org/ashley/poke/pulls/78 Reviewed-by: Korbs <korbs@noreply.codeberg.org>
This commit is contained in:
commit
1e3fd63d56
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue