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/leaderboard/compare.js b/frontend/js/leaderboard/compare.js index cad75c17..3c25359a 100644 --- a/frontend/js/leaderboard/compare.js +++ b/frontend/js/leaderboard/compare.js @@ -847,3 +847,5 @@ function renderProgressHistoryChart() { }, }); } + +.catch(err => console.error("Promise.all failed:", err)); \ No newline at end of file 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/navbar.js b/frontend/js/navbar.js index f67e0349..e2f11547 100644 --- a/frontend/js/navbar.js +++ b/frontend/js/navbar.js @@ -4,7 +4,7 @@ document.addEventListener("DOMContentLoaded", () => { const currentPath = window.location.pathname; - nav.innerHTML = ` + nav.textContent = `