diff --git a/index.html b/index.html index f396f35..ce622b4 100644 --- a/index.html +++ b/index.html @@ -156,7 +156,7 @@
+
[previous page] @@ -375,6 +375,10 @@ document.querySelector('#nextPageLink').href = `index.html?count=${data.data.children.length}&after=${data.data.after}` }) .then(loading = false) + .then(() => { + let clone = document.querySelector('#pageLinks').cloneNode(true) + document.querySelector('#postsListContainer').insertAdjacentElement('afterend', clone) + }) .catch(err => { return err }) }) } catch (error) {