From fda26c8f213137c0c00e149958202a96e8973278 Mon Sep 17 00:00:00 2001 From: Saurabh Kumar Bajpai Date: Tue, 4 Aug 2026 00:49:15 +0530 Subject: [PATCH] fix: resolve 4 bugs in leetcode-ranking --- frontend/js/boot.js | 2 +- frontend/js/footer.js | 2 +- scripts/analyze-inactivity.js | 2 ++ 3 files changed, 4 insertions(+), 2 deletions(-) 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/footer.js b/frontend/js/footer.js index 6b38391e..50311603 100644 --- a/frontend/js/footer.js +++ b/frontend/js/footer.js @@ -19,7 +19,7 @@ document.addEventListener("DOMContentLoaded", () => { const footer = document.createElement("footer"); footer.className = "footer"; - footer.innerHTML = ` + footer.textContent = `