Retire le signal de boot vers le splash supprime (DOMContentLoaded simplifie)

This commit is contained in:
2026-10-28 16:44:11 -04:00
parent 2a96ad3b1d
commit bfe0c75106
+2 -10
View File
@@ -120,16 +120,8 @@ async function init() {
} }
document.addEventListener("DOMContentLoaded", async () => { document.addEventListener("DOMContentLoaded", async () => {
try { await init();
await init(); Sync.init();
Sync.init();
} finally {
// Signale au splash de démarrage (index.html #boot-splash) que l'app est
// initialisée : le splash est retiré et le squelette stylé révélé.
// Set AFTER init() resolves so every handler (search, tabs, …) is bound.
window.__OBSIGATE_BOOTED = true;
if (typeof window.__obsigateBootReady === "function") window.__obsigateBootReady();
}
// Show version in header — always visible, fallback before the async fetch // Show version in header — always visible, fallback before the async fetch
populateVersions(); populateVersions();
fetch('/api/health') fetch('/api/health')