mirror of
https://github.com/C9Glax/tranga-website.git
synced 2025-04-19 14:53:20 +02:00
Update Job-Footer only every 5 seconds
This commit is contained in:
parent
1ed376ba47
commit
a3046680ac
@ -26,7 +26,7 @@ export default function Footer({connectedToBackend, apiUri, checkConnectedInterv
|
|||||||
if(countUpdateInterval === undefined){
|
if(countUpdateInterval === undefined){
|
||||||
setCountUpdateInterval(setInterval(() => {
|
setCountUpdateInterval(setInterval(() => {
|
||||||
UpdateBackendState();
|
UpdateBackendState();
|
||||||
}, checkConnectedInterval));
|
}, checkConnectedInterval * 5));
|
||||||
}
|
}
|
||||||
}else{
|
}else{
|
||||||
clearInterval(countUpdateInterval);
|
clearInterval(countUpdateInterval);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user