this.form.querySelectorAll("[name]")
This commit is contained in:
parent
7996e4a7ae
commit
262a26940c
@ -30,20 +30,12 @@ class Settings {
|
|||||||
}
|
}
|
||||||
|
|
||||||
load() {
|
load() {
|
||||||
for (let element of settingsForm.elements) {
|
this.form.querySelectorAll("[name]").forEach(element => element.value = localStorage[element.name])
|
||||||
if (element.name) {
|
|
||||||
if (localStorage[element.name]) element.value = localStorage[element.name]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
window.document.selectedStyleSheetSet = stylesheetSelect.value
|
window.document.selectedStyleSheetSet = stylesheetSelect.value
|
||||||
}
|
}
|
||||||
|
|
||||||
save() {
|
save() {
|
||||||
for (let element of settingsForm.elements) {
|
this.form.querySelectorAll("[name]").forEach(element => localStorage[element.name] = element.value)
|
||||||
if (element.name) {
|
|
||||||
localStorage[element.name] = element.value
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
init() {
|
init() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user