From 7c08d2e045a4849fa0b412b959fcb5940e94ba5b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Valenta?= <git@imaniti.org>
Date: Tue, 24 Oct 2023 22:41:35 +0200
Subject: [PATCH] always show 'Konec'

---
 static_src/timer.js | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/static_src/timer.js b/static_src/timer.js
index 784639b..8f39ea3 100644
--- a/static_src/timer.js
+++ b/static_src/timer.js
@@ -62,6 +62,11 @@ const updateTimer = (data, options) => {
         }
     }
 
+    if (minutes === 0 && seconds === 0) {
+        // Let an event listener handle the timer ending.
+        return
+    }
+
     console.info(`Updating timer: ${minutes}:${seconds}, used to be ${timerValues.minutes}:${timerValues.seconds}`)
 
     window.startingTime = {
-- 
GitLab