1
0
mirror of https://codeberg.org/setop/elm-scripting synced 2025-11-08 21:49:57 +00:00

feat: auto discover main module

This commit is contained in:
2025-10-02 19:02:25 +02:00
parent 34aaeaccc1
commit c68a679450
3 changed files with 6 additions and 6 deletions

View File

@@ -4,7 +4,7 @@
// and the Elm app code
// here we lanch the app
var app = Elm.Main.init({ node: document.getElementById("elm") });
Elm[Object.keys(Elm)[0]].init({ node: document.getElementById("elm") });
document.children[0].dump();