From dc46288e6d3b8efef57025956fdac8af34736964 Mon Sep 17 00:00:00 2001 From: Reimar Date: Sat, 9 Aug 2025 12:43:47 +0200 Subject: [PATCH] Reset progress animation when restarting --- popup/script.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/popup/script.js b/popup/script.js index 1662292..56261ad 100644 --- a/popup/script.js +++ b/popup/script.js @@ -49,8 +49,8 @@ document.getElementById("restart").onclick = function() { case "timer": // Reset progress bar - // TODO - progressBar.animationName = ""; + progressBar.style.animationName = "none"; + progressBar.offsetHeight; // Trigger reflow progressBar.animationName = "progress"; initTimer(); @@ -193,7 +193,6 @@ function timeUp() { [].slice.call(document.querySelectorAll("main > span")).forEach(function(elem) { elem.classList.toggle("red"); }); - //document.querySelector // Blink title if (document.title.indexOf(timesUpStr) === -1) document.title = timesUpStr + document.title;