diff --git a/assets/js/settings.js b/assets/js/settings.js index 360228eea..7a6d195e0 100644 --- a/assets/js/settings.js +++ b/assets/js/settings.js @@ -15,8 +15,11 @@ export function setupSettings() { // Local settings localCheckboxes.forEach(checkbox => { + const storeKey = checkbox.id.replace('user_', ''); + checkbox.checked = store.get(storeKey); + checkbox.addEventListener('change', () => { - store.set(checkbox.id.replace('user_', ''), checkbox.checked); + store.set(storeKey, checkbox.checked); }); });