From 774e04816e49f5031784bf48a24ca34ec46c0339 Mon Sep 17 00:00:00 2001 From: eraiza0816 <10572974+eraiza0816@users.noreply.github.com> Date: Tue, 8 Sep 2026 00:31:14 +0900 Subject: [PATCH] Fix login loop and system input wipe --- html/main.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/html/main.js b/html/main.js index a549a7a7..e020bd3f 100644 --- a/html/main.js +++ b/html/main.js @@ -935,7 +935,9 @@ var sectionIntervals = []; var sectionInits = {}; function setSectionInterval(fn, ms) { - sectionIntervals.push(setInterval(fn, ms)); + var id = setInterval(fn, ms); + sectionIntervals.push(id); + return id; } function clearSectionIntervals() { @@ -961,6 +963,7 @@ window.addEventListener('hashchange', function() { }); document.addEventListener('DOMContentLoaded', function() { + if (!document.getElementById('page-overview')) return; // not index.html (e.g. login.html) showSection((location.hash || '#/overview').replace(/^#\//, '')); });