mirror of
https://github.com/jakejarvis/npqueue.git
synced 2026-07-26 10:46:03 -04:00
slower refresh
This commit is contained in:
+2
-2
@@ -13,8 +13,8 @@ async function fetchData() {
|
||||
function updateData() {
|
||||
fetchData().then(data => updateTable(data)).catch(data => console.log(data));
|
||||
|
||||
// Re-fetch data every 15 seconds
|
||||
setTimeout(updateData, 15000);
|
||||
// Re-fetch data every 1 minute
|
||||
setTimeout(updateData, 60000);
|
||||
}
|
||||
|
||||
function updateTable(data) {
|
||||
|
||||
Reference in New Issue
Block a user