diff --git a/src/Pages/HomeView.elm b/src/Pages/HomeView.elm index bc1a0c22fa55ea8845777f695c5744b8956281c7..2b226dfc8bac208590cba01dab35b09147417693 100644 --- a/src/Pages/HomeView.elm +++ b/src/Pages/HomeView.elm @@ -43,6 +43,6 @@ homeView model = ] -- Display the loading message or any error message. , loadingMsg - , a [ class "link", href "/editor.html" ] [ text "Quiz Editor" ] + , a [ class "link", href "/editor" ] [ text "Quiz Editor" ] ] ] \ No newline at end of file diff --git a/src/editor.html b/src/editor.html index 57c740118e8219c7ba991d878f461a817954684f..db27df86528a9faf3212ebdc953f39f020fc10ca 100644 --- a/src/editor.html +++ b/src/editor.html @@ -37,6 +37,7 @@ try { const jsonData = await readJsonFile(file); checkBtn.remove(); + fileInput.remove(); const app = Elm.QuizEditor.Editor.init({ node: document.getElementById('elm-container'),