mirror of
				https://github.com/ZetaKebab/kesper.git
				synced 2025-11-04 08:09:49 +00:00 
			
		
		
		
	🎣 Infinite scroll: no API request on last page
no issue Brings back a little safety guard: when the current page is also the last page, don't make an API request to the server.
This commit is contained in:
		@@ -46,6 +46,11 @@ $(function ($) {
 | 
			
		||||
            return;
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        // return if currentPage is the last page already
 | 
			
		||||
        if (currentPage === maxPages) {
 | 
			
		||||
            return;
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        isLoading = true;
 | 
			
		||||
 | 
			
		||||
        // next page
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user