1
0
Fork 0
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:
Eggbertx 2023-06-22 08:14:37 -07:00
parent fba38c859b
commit 1facbdcd48

View file

@ -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";
}
}