Compare commits

..

No commits in common. "b3b4f7219362292d433bc5110e8a023e0d99c0bb" and "dff6808e94ab5a4b5370f154b1b12a1449c966cc" have entirely different histories.

View File

@ -3,9 +3,10 @@ const addLinkBtn = document.getElementById('addLinkBtn');
const newLinksContainer = document.getElementById('newLinksContainer');
const watchedLinksContainer = document.getElementById('watchedLinksContainer');
const PER_PAGE = 8;
let currentPage = 1;
function loadLinks() {
const PER_PAGE = 8;
let currentPage = 1;
fetch(`/api/links/?page=${currentPage}&per_page=${PER_PAGE}`)
.then(res => res.json())
.then(data => {