From e9cc81b58246a212f8f9adadbe3974481aac2a5a Mon Sep 17 00:00:00 2001 From: haunter Date: Sun, 3 May 2026 22:42:14 +0300 Subject: [PATCH] live scan fix 2 --- bot_modules/05_main.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/bot_modules/05_main.js b/bot_modules/05_main.js index 0660ffd..e289653 100644 --- a/bot_modules/05_main.js +++ b/bot_modules/05_main.js @@ -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);