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:
@@ -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') {
|
||||||
|
|||||||
Reference in New Issue
Block a user