Skip to content

Commit 90088f8

Browse files
authored
Update index.html
1 parent 7230186 commit 90088f8

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

index.html

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -458,7 +458,7 @@ <h2>Results</h2>
458458
const hidePopup = localStorage.getItem("hideLicensePopup");
459459

460460
if (hidePopup) {
461-
startTimer(); // start immediately if user has chosen not to see the popup
461+
startTimer(); // start immediately if popup gone
462462
} else {
463463
const licenseOverlay = document.getElementById("licenseOverlay");
464464
const closeBtn = document.getElementById("closeLicenseBtn");
@@ -469,14 +469,13 @@ <h2>Results</h2>
469469
localStorage.setItem("hideLicensePopup", "true");
470470
}
471471
licenseOverlay.style.display = "none";
472-
startTimer(); // timer starts after popup closed
472+
startTimer();
473473
};
474474

475-
// then show the popup
475+
476476
licenseOverlay.style.display = "flex";
477477
}
478478
} else {
479-
// Restart pressed → start timer immediately
480479
startTimer();
481480
}
482481

0 commit comments

Comments
 (0)