From 7ac51f7c4f442f75e6c7705872ced0880535e843 Mon Sep 17 00:00:00 2001 From: Saurabh Kumar Bajpai Date: Sat, 1 Aug 2026 05:33:06 +0530 Subject: [PATCH] fix: code quality and safety improvements --- frontend/js/boot.js | 2 +- frontend/js/footer.js | 2 +- frontend/js/hero_fx.js | 4 ++-- frontend/js/navbar.js | 2 +- scripts/analyze-inactivity.js | 4 ++-- 5 files changed, 7 insertions(+), 7 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 = `