fix: remove boot call from private init() to prevent hash-URL double-boot

Private init() and lt.init() both called runBoot(), creating two code paths.
With base.html# URLs the sessionStorage guard could be bypassed causing every
boot line to appear twice. Boot is now exclusively triggered by lt.init() or
lt.boot.run(), which already has its own _ltInitialized guard.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-27 14:46:34 -04:00
parent 80011e6de5
commit 32f7b49f98
+1 -3
View File
@@ -1333,9 +1333,7 @@
/* v1.3 */ /* v1.3 */
initMobileNav(); initMobileNav();
initSidebarSubmenus(); initSidebarSubmenus();
/* Boot */ /* Boot is handled exclusively by lt.init() or lt.boot.run() to avoid double-init */
const bootEl = document.getElementById('lt-boot');
if (bootEl) runBoot(bootEl.dataset.appName || document.title);
} }
if (document.readyState === 'loading') { if (document.readyState === 'loading') {