From 09af52992cc7d0eea312fa71cdaa4e0239a4dd7a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Kotiuk?= Date: Sun, 14 Apr 2024 19:30:09 +0200 Subject: [PATCH] =?UTF-8?q?Szybsze=20zaktualizowanie=20statusu=20haczyka?= =?UTF-8?q?=20po=20za=C5=82adowaniu=20strony?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- static/js/badge.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/static/js/badge.js b/static/js/badge.js index 346c8d4..696b4c8 100644 --- a/static/js/badge.js +++ b/static/js/badge.js @@ -43,4 +43,7 @@ function getState(){ handleError(error); }) } -setInterval(getState, 2500); \ No newline at end of file +setInterval(getState, 4000); + +// pierwsza aktualizacja powinna nastąpić zaraz po załadowaniu strony +setTimeout(getState, 200); \ No newline at end of file