From 44901d2411643b6b1eafd25fbaeaa36a1b365a02 Mon Sep 17 00:00:00 2001 From: Eduard Urbach Date: Wed, 14 Mar 2018 20:54:32 +0100 Subject: [PATCH] Fixed scrolling --- scripts/Actions/InfiniteScroller.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/Actions/InfiniteScroller.ts b/scripts/Actions/InfiniteScroller.ts index 6bbaeb86..e24b6b5c 100644 --- a/scripts/Actions/InfiniteScroller.ts +++ b/scripts/Actions/InfiniteScroller.ts @@ -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")