mirror of
				https://github.com/TeamPiped/Piped.git
				synced 2024-08-14 23:57:27 +00:00 
			
		
		
		
	
							parent
							
								
									a082b508eb
								
							
						
					
					
						commit
						369aed3e1f
					
				
					 2 changed files with 6 additions and 6 deletions
				
			
		| 
						 | 
				
			
			@ -59,7 +59,7 @@ export default {
 | 
			
		|||
                .then(() => (document.title = this.channel.name + " - Piped"));
 | 
			
		||||
        },
 | 
			
		||||
        handleScroll() {
 | 
			
		||||
            if (this.loading || !this.channel || !this.channel.nextpage || !this.channel.nextid) return;
 | 
			
		||||
            if (this.loading || !this.channel || !this.channel.nextpage || !this.channel.nextbody) return;
 | 
			
		||||
            if (window.innerHeight + window.scrollY >= document.body.offsetHeight - window.innerHeight) {
 | 
			
		||||
                this.loading = true;
 | 
			
		||||
                this.fetchJson(
 | 
			
		||||
| 
						 | 
				
			
			@ -69,11 +69,11 @@ export default {
 | 
			
		|||
                        "?url=" +
 | 
			
		||||
                        encodeURIComponent(this.channel.nextpage) +
 | 
			
		||||
                        "&id=" +
 | 
			
		||||
                        encodeURIComponent(this.channel.nextid),
 | 
			
		||||
                        encodeURIComponent(this.channel.nextbody),
 | 
			
		||||
                ).then(json => {
 | 
			
		||||
                    this.channel.relatedStreams.concat(json.relatedStreams);
 | 
			
		||||
                    this.channel.nextpage = json.nextpage;
 | 
			
		||||
                    this.channel.nextid = json.nextid;
 | 
			
		||||
                    this.channel.nextbody = json.nextbody;
 | 
			
		||||
                    this.loading = false;
 | 
			
		||||
                    json.relatedStreams.map(stream => this.channel.relatedStreams.push(stream));
 | 
			
		||||
                });
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -68,7 +68,7 @@ export default {
 | 
			
		|||
                .then(() => (document.title = this.playlist.name + " - Piped"));
 | 
			
		||||
        },
 | 
			
		||||
        handleScroll() {
 | 
			
		||||
            if (this.loading || !this.playlist || !this.playlist.nextpage || !this.playlist.nextid) return;
 | 
			
		||||
            if (this.loading || !this.playlist || !this.playlist.nextpage || !this.playlist.nextbody) return;
 | 
			
		||||
            if (window.innerHeight + window.scrollY >= document.body.offsetHeight - window.innerHeight) {
 | 
			
		||||
                this.loading = true;
 | 
			
		||||
                this.fetchJson(
 | 
			
		||||
| 
						 | 
				
			
			@ -78,11 +78,11 @@ export default {
 | 
			
		|||
                        "?url=" +
 | 
			
		||||
                        encodeURIComponent(this.playlist.nextpage) +
 | 
			
		||||
                        "&id=" +
 | 
			
		||||
                        encodeURIComponent(this.playlist.nextid),
 | 
			
		||||
                        encodeURIComponent(this.playlist.nextbody),
 | 
			
		||||
                ).then(json => {
 | 
			
		||||
                    this.playlist.relatedStreams.concat(json.relatedStreams);
 | 
			
		||||
                    this.playlist.nextpage = json.nextpage;
 | 
			
		||||
                    this.playlist.nextid = json.nextid;
 | 
			
		||||
                    this.playlist.nextbody = json.nextbody;
 | 
			
		||||
                    this.loading = false;
 | 
			
		||||
                    json.relatedStreams.map(stream => this.playlist.relatedStreams.push(stream));
 | 
			
		||||
                });
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue