mirror of
https://github.com/Eggbertx/gochan.git
synced 2025-09-06 11:46:24 -07:00
Fix setting value not showing correctly for checkboxes
This commit is contained in:
parent
fba38c859b
commit
1facbdcd48
1 changed files with 2 additions and 2 deletions
|
@ -99,8 +99,8 @@ class BooleanSetting extends Setting<boolean, HTMLInputElement> {
|
|||
this.element.prop("checked", newVal);
|
||||
}
|
||||
getStorageValue() {
|
||||
const val = super.getStorageValue();
|
||||
return val === true;
|
||||
const val = super.getStorageValue() as any as string;
|
||||
return val === "true";
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue