summaryrefslogtreecommitdiff
path: root/views/components
diff options
context:
space:
mode:
Diffstat (limited to 'views/components')
-rw-r--r--views/components/timer.twig3
1 files changed, 2 insertions, 1 deletions
diff --git a/views/components/timer.twig b/views/components/timer.twig
index 97977da..ccb31a7 100644
--- a/views/components/timer.twig
+++ b/views/components/timer.twig
@@ -9,8 +9,9 @@ document.addEventListener('DOMContentLoaded', function (ev) {
const interval = setInterval(setTime, 1000);
function setTime() {
let diff = time - new Date();
- if (diff <= -1) {
+ if (diff <= 0) {
clearInterval(interval);
+ window.location.reload();
}
const hh = Math.floor(diff/1000/60/60);