mirror of
https://github.com/TeamPiped/Piped.git
synced 2024-08-30 18:43:17 +00:00
Fix for channel continuation.
This commit is contained in:
parent
ad35531388
commit
41b0fb8b96
@ -75,7 +75,13 @@ export default {
|
|||||||
.then(() => (document.title = this.channel.name + " - Piped"));
|
.then(() => (document.title = this.channel.name + " - Piped"));
|
||||||
},
|
},
|
||||||
handleScroll() {
|
handleScroll() {
|
||||||
if (this.loading || !this.channel || !this.channel.nextpage) return;
|
if (
|
||||||
|
this.loading ||
|
||||||
|
!this.channel ||
|
||||||
|
!this.channel.nextpage ||
|
||||||
|
!this.channel.nextid
|
||||||
|
)
|
||||||
|
return;
|
||||||
if (
|
if (
|
||||||
window.innerHeight + window.scrollY >=
|
window.innerHeight + window.scrollY >=
|
||||||
document.body.offsetHeight - window.innerHeight
|
document.body.offsetHeight - window.innerHeight
|
||||||
@ -86,7 +92,9 @@ export default {
|
|||||||
"/nextpage/channels/" +
|
"/nextpage/channels/" +
|
||||||
this.$route.params.channelId +
|
this.$route.params.channelId +
|
||||||
"?url=" +
|
"?url=" +
|
||||||
encodeURIComponent(this.channel.nextpage)
|
encodeURIComponent(this.channel.nextpage) +
|
||||||
|
"&id=" +
|
||||||
|
encodeURIComponent(this.channel.nextid)
|
||||||
).then(json => {
|
).then(json => {
|
||||||
this.channel.relatedStreams.concat(json.relatedStreams);
|
this.channel.relatedStreams.concat(json.relatedStreams);
|
||||||
this.channel.nextpage = json.nextpage;
|
this.channel.nextpage = json.nextpage;
|
||||||
|
Loading…
Reference in New Issue
Block a user