feat(autoreload): change interval from 5 seconds to 1 second
This commit is contained in:
+2
-2
@@ -161,8 +161,8 @@
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
// Auto-reload every 5 seconds
|
// Auto-reload
|
||||||
setInterval(reload, 5000);
|
setInterval(reload, 1000);
|
||||||
|
|
||||||
const url2 = new URL('api', location.href);
|
const url2 = new URL('api', location.href);
|
||||||
fetch(url2, {cache: 'no-cache'}).then(r => r.json()).then(data => {
|
fetch(url2, {cache: 'no-cache'}).then(r => r.json()).then(data => {
|
||||||
|
|||||||
Reference in New Issue
Block a user