Fixed scrolling

This commit is contained in:
Eduard Urbach 2018-03-14 20:54:32 +01:00
parent 1cd8746ae5
commit 44901d2411

View File

@ -13,7 +13,9 @@ export function loadMore(arn: AnimeNotifier, button: HTMLButtonElement) {
let target = arn.app.find("load-more-target")
let index = button.dataset.index
fetch("/_" + arn.app.currentPath + "/from/" + index)
fetch("/_" + arn.app.currentPath + "/from/" + index, {
credentials: "same-origin"
})
.then(response => {
let newIndex = response.headers.get("X-LoadMore-Index")