mirror of
https://github.com/TeamPiped/Piped.git
synced 2024-11-21 21:17:26 +00:00
Add check to ensure videos are present before fetching more items.
This commit is contained in:
parent
d320cca0d9
commit
96a57b805d
@ -115,7 +115,7 @@ export default {
|
|||||||
if (window.innerHeight + window.scrollY >= document.body.offsetHeight - window.innerHeight) {
|
if (window.innerHeight + window.scrollY >= document.body.offsetHeight - window.innerHeight) {
|
||||||
if (this.loading) return;
|
if (this.loading) return;
|
||||||
if (this.videos == null) return;
|
if (this.videos == null) return;
|
||||||
if (this.videosCount % 100 != 0) return;
|
if (this.videosCount > 0 && this.videosCount % 100 != 0) return;
|
||||||
|
|
||||||
this.loading = true;
|
this.loading = true;
|
||||||
this.loadMoreVideos();
|
this.loadMoreVideos();
|
||||||
|
Loading…
Reference in New Issue
Block a user