feat(autoreload): change interval from 5 seconds to 1 second

This commit is contained in:
Sergey Krashevich
2024-04-18 02:56:32 +03:00
parent de7326375d
commit 5cf343cb69

View File

@@ -161,8 +161,8 @@
});
}
// Auto-reload every 5 seconds
setInterval(reload, 5000);
// Auto-reload
setInterval(reload, 1000);
const url2 = new URL('api', location.href);
fetch(url2, {cache: 'no-cache'}).then(r => r.json()).then(data => {