Fix non-JS fallback

This commit is contained in:
3wc
2021-11-04 14:58:42 +02:00
parent dadfdda313
commit 41ed475891
2 changed files with 7 additions and 2 deletions

View File

@ -2,8 +2,13 @@
// https://guide.elm-lang.org/interop/flags.html
var flags = null
// remove fallback message
document.addEventListener("DOMContentLoaded", function(event) {
document.getElementById('fallback').remove()
});
// Start our Elm application
var app = Elm.Main.init({ flags: flags })
// Ports go here
// https://guide.elm-lang.org/interop/ports.html
// https://guide.elm-lang.org/interop/ports.html