Skip to content

Commit

Permalink
chore: rename updateIndexes function to updateHasMore
Browse files Browse the repository at this point in the history
akhileshthite committed May 23, 2024
1 parent 4a2e8f9 commit 4299062
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions timeline.js
Original file line number Diff line number Diff line change
@@ -109,7 +109,7 @@ class ReaderTimeline extends HTMLElement {
}
}

this.updateIndexes(count)
this.updateHasMore(count)
this.appendLoadMoreIfNeeded()
}

@@ -122,7 +122,7 @@ class ReaderTimeline extends HTMLElement {
return notes
}

updateIndexes (count) {
updateHasMore (count) {
if (this.sort === 'random') {
this.loadedNotesCount += count
this.hasMoreItems = this.loadedNotesCount < this.totalNotesCount

0 comments on commit 4299062

Please sign in to comment.