summaryrefslogtreecommitdiffstats
path: root/js/settings.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/settings.js')
-rw-r--r--js/settings.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/js/settings.js b/js/settings.js
index 5811ee4..fed7fe6 100644
--- a/js/settings.js
+++ b/js/settings.js
@@ -7,10 +7,11 @@ async function setLanguage(langCode) {
}
document.addEventListener("DOMContentLoaded", async () => {
- $(document).on("click",".settings-language-selector", function () {
+ $(document).on("click", ".settings-language-selector", () => {
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 });