Skip to content

Commit

Permalink
Szybsze zaktualizowanie statusu haczyka po załadowaniu strony
Browse files Browse the repository at this point in the history
  • Loading branch information
pktiuk committed Apr 14, 2024
1 parent 8adf77d commit 09af529
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion static/js/badge.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,7 @@ function getState(){
handleError(error);
})
}
setInterval(getState, 2500);
setInterval(getState, 4000);

// pierwsza aktualizacja powinna nastąpić zaraz po załadowaniu strony
setTimeout(getState, 200);

0 comments on commit 09af529

Please sign in to comment.