mirror of
https://github.com/asimonson1125/asimonson1125.github.io.git
synced 2026-02-25 05:09:49 -06:00
fix statusIntervalId redeclaration error on SPA re-navigation
Use var instead of let for statusIntervalId so the script can be re-executed by the SPA script-cloning logic without throwing a redeclaration error when navigating back to the status page. https://claude.ai/code/session_01FUhPqQLahEoL6FMxhXkDKa
This commit is contained in:
@@ -236,7 +236,7 @@ function refreshStatus() {
|
||||
/**
|
||||
* Initialize on page load
|
||||
*/
|
||||
let statusIntervalId = null;
|
||||
var statusIntervalId = null;
|
||||
|
||||
function initStatusPage() {
|
||||
// Clear any existing interval from a previous SPA navigation
|
||||
|
||||
Reference in New Issue
Block a user