fix: call AiLab.init() on DOMContentLoaded so batch sim panel renders

The ai-lab.js IIFE defines the AiLab global with an init() method that
calls renderPanel(), detectBackend(), loadAvailableDecks(),
loadMetaCommanders(), loadPrecons(), and bindEvents() — but nothing
ever invoked it. Added a DOMContentLoaded listener after the script tag
in index.html to trigger initialization.
This commit is contained in:
rgriffith committed 2026-03-19 09:34:27 +00:00
1 parent 6a84708c65
commit 0d2da18783
1 file changed
+1
+1
View File
@@ -197,5 +197,6 @@
</div>
<script src="ai-lab.js"></script>
<script>document.addEventListener('DOMContentLoaded', () => AiLab.init());</script>
</body>
</html>