mirror of
				https://codeberg.org/ashley/poke
				synced 2025-07-17 16:52:11 +00: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
					
				| @ -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…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Ashley ////
						Ashley ////