mirror of
				https://github.com/TeamPiped/Piped.git
				synced 2025-11-04 06:31:55 +00:00 
			
		
		
		
	Merge pull request #1655 from TeamPiped/revert-1654-master
Revert "fix nextpage = undefined"
This commit is contained in:
		@@ -142,7 +142,7 @@ export default {
 | 
			
		||||
                });
 | 
			
		||||
        },
 | 
			
		||||
        handleScroll() {
 | 
			
		||||
            if (this.loading || !this.channel) return;
 | 
			
		||||
            if (this.loading || !this.channel || !this.channel.nextpage) return;
 | 
			
		||||
            if (window.innerHeight + window.scrollY >= document.body.offsetHeight - window.innerHeight) {
 | 
			
		||||
                this.loading = true;
 | 
			
		||||
                if (this.selectedTab == 0) {
 | 
			
		||||
@@ -153,7 +153,6 @@ export default {
 | 
			
		||||
            }
 | 
			
		||||
        },
 | 
			
		||||
        fetchChannelNextPage() {
 | 
			
		||||
            if (!this.channel.nextpage) return;
 | 
			
		||||
            this.fetchJson(this.apiUrl() + "/nextpage/channel/" + this.channel.id, {
 | 
			
		||||
                nextpage: this.channel.nextpage,
 | 
			
		||||
            }).then(json => {
 | 
			
		||||
@@ -164,7 +163,6 @@ export default {
 | 
			
		||||
            });
 | 
			
		||||
        },
 | 
			
		||||
        fetchChannelTabNextPage() {
 | 
			
		||||
            if (!this.tabNextPage) return;
 | 
			
		||||
            this.fetchJson(this.apiUrl() + "/channels/tabs", {
 | 
			
		||||
                data: this.tabs[this.selectedTab].data,
 | 
			
		||||
                nextpage: this.tabNextPage,
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user