diff --git a/js/app.js b/js/app.js index 323c3d2..925d9fc 100644 --- a/js/app.js +++ b/js/app.js @@ -61,12 +61,14 @@ async function main(type) { .then(x => x.json())); extraFetch.forEach(x => { x.studio = studios[typed].title; - x.studioID = user; }); } else if (typed == '#' && type == '#comment') { extraFetch = await (fetch(`https://hf.zenoverse.net/studio_comment/${user}`) .then(x => x.json())); - extraFetch.forEach(x => x.studio = studios[typed].title); + extraFetch.forEach(x => { + x.studio = studios[typed].title; + x.studioID = user + }); } else if (typed == '@' && type == '#user') { extraFetch = await (fetch(`https://hf.zenoverse.net/user/${user}`) .then(x => x.json())); @@ -162,8 +164,8 @@ sub.textContent = sub.value = val; main(window.location.hash || '#user'); document.querySelector('#submit').onclick = () => main(window.location.hash || '#user'); -document.querySelectorAll('.buttons button').forEach(x => x.onclick = function() { - window.setInterval(function() { +document.querySelectorAll('.buttons button').forEach(x => x.onclick = function () { + window.setInterval(function () { window.location.reload(); - },100); + }, 100); }) \ No newline at end of file