fix: restore init block + move CARD_SEED_VERSION before call site

Previous commit accidentally deleted the init block (loadGroups/loadState/
renderSidebar/show/setView). Also the const declaration was after the call,
causing a TDZ ReferenceError that silently broke all initialization.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Robin Choice
2026-05-20 16:36:23 +02:00
parent 1957d957fb
commit 0039b914c1

View File

@@ -2374,20 +2374,6 @@ function renderIdeas() {
}).join(''); }).join('');
} }
// ── INIT ──────────────────────────────────────────────────────────────────
if (window.location.protocol === 'file:') {
document.getElementById('proto-banner').style.display = 'flex';
}
loadGroups();
loadBoardOrder();
seedCards();
loadState();
renderSidebar();
loadIdeas();
renderIdeas();
show('doener');
setView('overview');
// ── CARD SEEDER ────────────────────────────────────────────────────────────── // ── CARD SEEDER ──────────────────────────────────────────────────────────────
const CARD_SEED_VERSION = '2026-05-20-b'; const CARD_SEED_VERSION = '2026-05-20-b';
function seedCards() { function seedCards() {
@@ -2438,6 +2424,20 @@ function importState(input) {
}; };
reader.readAsText(file); reader.readAsText(file);
} }
// ── INIT ──────────────────────────────────────────────────────────────────
if (window.location.protocol === 'file:') {
document.getElementById('proto-banner').style.display = 'flex';
}
loadGroups();
loadBoardOrder();
seedCards();
loadState();
renderSidebar();
loadIdeas();
renderIdeas();
show('doener');
setView('overview');
</script> </script>
</body> </body>
</html> </html>