diff options
Diffstat (limited to 'js/settings.js')
-rw-r--r-- | js/settings.js | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/js/settings.js b/js/settings.js index 2e0e6ac..fda9ea5 100644 --- a/js/settings.js +++ b/js/settings.js @@ -1,19 +1,19 @@ // settings.js -- TODO async function setLanguage(langCode) { - localforage.setItem("chosenLang", langCode).then((value) => { - console.log("Language set: " + value); - UIAlert(D("languageSet"), "setLanguage(): languageSet"); - }); + localforage.setItem("chosenLang", langCode).then((value) => { + console.log("Language set: " + value); + UIAlert(D("languageSet"), "setLanguage(): languageSet"); + }); } document.addEventListener("DOMContentLoaded", async () => { - $(".settings-language-selector").click(function () { - let languageToSet = $(this).attr("data-language"); - setLanguage(languageToSet); - }); + $(".settings-language-selector").click(function () { + let languageToSet = $(this).attr("data-language"); + setLanguage(languageToSet); + }); - // Setup side menu - const menus = document.querySelectorAll(".side-menu"); - M.Sidenav.init(menus, { edge: "right", draggable: true }); + // Setup side menu + const menus = document.querySelectorAll(".side-menu"); + M.Sidenav.init(menus, { edge: "right", draggable: true }); }); |