diff --git a/frontend/js/boot.js b/frontend/js/boot.js index fcc2eff9..4cda3565 100644 --- a/frontend/js/boot.js +++ b/frontend/js/boot.js @@ -47,7 +47,7 @@ document.addEventListener("DOMContentLoaded", () => { text = text.replace("[OK]", '[OK]'); } - line.innerHTML = text; + line.textContent = text; bootInner.appendChild(line); // Auto scroll to bottom diff --git a/frontend/js/matrix.js b/frontend/js/matrix.js index cfb530d7..4ce05e06 100644 --- a/frontend/js/matrix.js +++ b/frontend/js/matrix.js @@ -94,5 +94,5 @@ document.addEventListener("DOMContentLoaded", () => { } // We don't want the matrix to be super smooth 60fps, Matrix screens look good around 30fps - setInterval(draw, 1000 / FPS); + clearInterval(window.__interval); window.__interval = setInterval(draw, 1000 / FPS); }); diff --git a/frontend/js/terminal_ui.js b/frontend/js/terminal_ui.js index 64d29fbd..957434eb 100644 --- a/frontend/js/terminal_ui.js +++ b/frontend/js/terminal_ui.js @@ -18,7 +18,7 @@ document.addEventListener("DOMContentLoaded", () => { titles.forEach((title) => { title.dataset.original = title.innerText.trim(); - title.innerText = ""; + title.textContent = ""; observer.observe(title); }); diff --git a/scripts/sync-leaderboard.js b/scripts/sync-leaderboard.js index ec9bb63a..84271ff4 100644 --- a/scripts/sync-leaderboard.js +++ b/scripts/sync-leaderboard.js @@ -706,3 +706,5 @@ async function processTimeframe(sourceData, DATA_DIR, periodName, daysAgo) { console.error(`Failed to write sync file: `, err.message); } })(); + +.catch(err => console.error("Promise.all failed:", err)); \ No newline at end of file