mirror of
https://github.com/itflow-org/itflow
synced 2026-02-28 02:44:53 +00:00
Refactor variable declarations to use let instead
of var
This commit is contained in:
@@ -128,7 +128,7 @@
|
||||
|
||||
|
||||
function updateRunningTicketsCount() {
|
||||
var runningTickets = parseInt(document.getElementById('runningTicketsCount').innerText, 10);
|
||||
let runningTickets = parseInt(document.getElementById('runningTicketsCount').innerText, 10);
|
||||
|
||||
if (!isPaused && timerInterval) {
|
||||
runningTickets += 1;
|
||||
@@ -182,7 +182,7 @@
|
||||
// Wait for other synchronous actions (if any) to complete before resetting the timer.
|
||||
setTimeout(clearTimeStorage, 100); // 100ms delay should suffice, but you can adjust as needed.
|
||||
});
|
||||
|
||||
|
||||
try {
|
||||
displayTime();
|
||||
if (!localStorage.getItem(getLocalStorageKey("startTime")) && !localStorage.getItem(getLocalStorageKey("pausedTime"))) {
|
||||
|
||||
Reference in New Issue
Block a user