summaryrefslogtreecommitdiffstats
path: root/assets/js/settings.js
diff options
context:
space:
mode:
Diffstat (limited to 'assets/js/settings.js')
-rw-r--r--assets/js/settings.js8
1 files changed, 3 insertions, 5 deletions
diff --git a/assets/js/settings.js b/assets/js/settings.js
index f31bfaf..3cb4c9b 100644
--- a/assets/js/settings.js
+++ b/assets/js/settings.js
@@ -17,13 +17,11 @@ async function setTheme(targetTheme) {
document.addEventListener("DOMContentLoaded", async () => {
$("#select-language").on("change", () => {
- let languageToSet = $(this).find(":selected").data("language");
- setLanguage(languageToSet);
+ setLanguage($(this).find(":selected").val());
});
- $("#select-theme").on("change", () => {
- let themeToSet = $(this).find(":selected").data("theme");
- setTheme(themeToSet);
+ $("#select-theme").on("change", function() {
+ setTheme($(this).find(":selected").val());
});
localforage.getItem("chosenLang").then((value) => {