diff --git a/main.go b/main.go index a848d9f..ae9844b 100644 --- a/main.go +++ b/main.go @@ -13,7 +13,6 @@ import ( ) //go:embed static/* -//go:embed static/*/* var embedFS embed.FS func run() error { diff --git a/static/js/lang.js b/static/js/lang.js index 76488ac..01e455e 100644 --- a/static/js/lang.js +++ b/static/js/lang.js @@ -61,10 +61,11 @@ function initLanguageButtons() { } window.addEventListener("load", async () => { - const lang = localStorage.getItem(LANGUAGE_KEY); - if (lang != null) { - await setLanguage(lang); + let lang = localStorage.getItem(LANGUAGE_KEY); + if (lang == null) { + lang = "en"; } + await setLanguage(lang); initLanguageButtons(); });