mirror of
https://github.com/olegvodyanov/instalinks.git
synced 2025-12-20 05:47:03 +03:00
fix
This commit is contained in:
parent
9303b3a6e6
commit
37ab5965ed
@ -3,10 +3,9 @@ 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 => {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user