File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments