From fa1bc2a2b0a38630cdd001fb4714d719e803afa1 Mon Sep 17 00:00:00 2001 From: Aevann Date: Fri, 26 Apr 2024 03:24:42 +0300 Subject: [PATCH] use the commas function --- files/assets/js/deaths_today.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/assets/js/deaths_today.js b/files/assets/js/deaths_today.js index f92867c36..0d0a289cd 100644 --- a/files/assets/js/deaths_today.js +++ b/files/assets/js/deaths_today.js @@ -4,7 +4,7 @@ let death_counter = parseInt(dt.getSeconds() + (60 * dt.getMinutes()) + (60 * 60 function update_death_counter() { death_counter += 1 for (const el of document.getElementsByClassName('deaths-today')) - el.innerHTML = death_counter.toLocaleString() + el.innerHTML = commas(death_counter) } update_death_counter()