Skip to content

Commit 05f5885

Browse files
committed
Fix timer warning on new container.
1 parent c19d460 commit 05f5885

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

public/main.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ function updateTimer(minutes, seconds, timerElement, totalDuration) {
2020
const remainingTime = minutes * 60 + seconds;
2121
const remainingPercentage = (remainingTime / totalDuration) * 100;
2222
if (remainingPercentage <= 20) {
23-
timerElement.classList.add('warning');
23+
document.getElementById('pri-container').classList.add('warning');
2424
} else {
25-
timerElement.classList.remove('warning');
25+
document.getElementById('pri-container').classList.remove('warning');
2626
}
2727
}
2828

0 commit comments

Comments
 (0)