mirror of
https://github.com/AlexxIT/go2rtc.git
synced 2025-09-26 20:31:11 +08:00
feat(autoreload): change interval from 5 seconds to 1 second
This commit is contained in:
@@ -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 => {
|
||||
|
Reference in New Issue
Block a user