fix settings load

This commit is contained in:
2023-12-08 12:12:15 +01:00
parent f39d677b62
commit 228fc56916
2 changed files with 5 additions and 2 deletions

View File

@ -30,7 +30,10 @@ class Settings {
}
load() {
this.form.querySelectorAll("[name]").forEach(element => element.value = localStorage[element.name])
this.form.querySelectorAll("[name]").forEach(element => {
if (element.name in localStorage)
element.value = localStorage[element.name]
})
window.document.selectedStyleSheetSet = stylesheetSelect.value
}