fix setting boolean-style query string parsing close #106

This commit is contained in:
Matt Walsh 2025-06-06 16:40:08 -05:00
commit 9a55a6ec39
No known key found for this signature in database
2 changed files with 8 additions and 0 deletions

View file

@ -38,6 +38,9 @@ class Setting {
if (this.type === 'checkbox' && urlValue !== undefined) {
urlState = urlValue === 'true';
}
if (this.type === 'boolean' && urlValue !== undefined) {
urlState = urlValue === 'true';
}
if (this.type === 'select' && urlValue !== undefined) {
urlState = parseFloat(urlValue);
}