Fix login loop and system input wipe

This commit is contained in:
eraiza0816 committed 2026-09-08 00:31:14 +09:00
1 parent ead1c40aac
commit 774e04816e
1 file changed
+4 -1
+4 -1
View File
@@ -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(/^#\//, ''));
});