mirror of
https://github.com/TeamPiped/Piped.git
synced 2024-08-14 23:57:27 +00:00
Fix for channel continuation.
This commit is contained in:
parent
ad35531388
commit
41b0fb8b96
1 changed files with 10 additions and 2 deletions
|
@ -75,7 +75,13 @@ export default {
|
|||
.then(() => (document.title = this.channel.name + " - Piped"));
|
||||
},
|
||||
handleScroll() {
|
||||
if (this.loading || !this.channel || !this.channel.nextpage) return;
|
||||
if (
|
||||
this.loading ||
|
||||
!this.channel ||
|
||||
!this.channel.nextpage ||
|
||||
!this.channel.nextid
|
||||
)
|
||||
return;
|
||||
if (
|
||||
window.innerHeight + window.scrollY >=
|
||||
document.body.offsetHeight - window.innerHeight
|
||||
|
@ -86,7 +92,9 @@ export default {
|
|||
"/nextpage/channels/" +
|
||||
this.$route.params.channelId +
|
||||
"?url=" +
|
||||
encodeURIComponent(this.channel.nextpage)
|
||||
encodeURIComponent(this.channel.nextpage) +
|
||||
"&id=" +
|
||||
encodeURIComponent(this.channel.nextid)
|
||||
).then(json => {
|
||||
this.channel.relatedStreams.concat(json.relatedStreams);
|
||||
this.channel.nextpage = json.nextpage;
|
||||
|
|
Loading…
Reference in a new issue