1
0
Fork 0
mirror of https://git.sr.ht/~cadence/bibliogram synced 2026-03-01 18:31:35 +00:00
This commit is contained in:
Cadence Ember 2020-06-25 02:58:01 +12:00
parent 865e3b0778
commit a023e09743
No known key found for this signature in database
GPG key ID: 128B99B1B74A6412
12 changed files with 193 additions and 111 deletions

View file

@ -75,8 +75,9 @@ class NextPage extends FreezeWidth {
if (this.fetching) return
this.fetching = true
this.freeze("Loading...")
const type = this.element.getAttribute("data-type")
return fetch(`/fragment/user/${this.element.getAttribute("data-username")}/${this.nextPageNumber}`).then(res => res.text()).then(text => {
return fetch(`/fragment/user/${this.element.getAttribute("data-username")}/${this.nextPageNumber}?type=${type}`).then(res => res.text()).then(text => {
q("#next-page-container").remove()
this.observer.disconnect()
q("#timeline").insertAdjacentHTML("beforeend", text)