diff --git a/.gitignore b/.gitignore index 2bf3791d44f6ca15cf5428f4a1ee748bc89b820a..8493477d987feecb0ddfc49bdabde918880d5b18 100644 --- a/.gitignore +++ b/.gitignore @@ -6,6 +6,7 @@ Test/ build/ dist/ elm.js +editor.js test.js # Node modules (if using npm/yarn for other dependencies) diff --git a/src/editor.html b/src/editor.html index 3f2fb9f18ae0d44db008f499612c55743e989d60..146a20f96e9c3402eb9b3bce1fb321edfb99c406 100644 --- a/src/editor.html +++ b/src/editor.html @@ -13,7 +13,7 @@ reader.onload = function(e) { const jsonString = e.target.result; const json = JSON.parse(jsonString); - const app = Elm.Main.init({ + const app = Elm.Editor.init({ node: document.getElementById('elm-container'), flags: json }); @@ -26,6 +26,6 @@ <body> <input type="file" id="fileInput" /> <div id="elm-container"></div> - <!--script src="elm.js"></script--> + <script src="editor.js"></script> </body> </html> \ No newline at end of file