live scan fix 2

This commit is contained in:
2026-05-03 22:42:14 +03:00
parent a153b397d3
commit e9cc81b582

View File

@@ -241,8 +241,10 @@ function boot() {
}
if (document.readyState === 'complete') {
// Page already loaded (normal case when eval()'d dynamically)
boot();
// Page already loaded (normal case when eval()'d dynamically).
// Use setTimeout so the rest of the concatenated modules (like 06 and 07)
// have a chance to evaluate and expose their init functions before boot runs.
setTimeout(boot, 0);
} else {
// Fallback: wait for load event (shouldn't happen but safe to keep)
window.addEventListener('load', boot);