fix setting boolean-style query string parsing close #106
This commit is contained in:
parent
faaf6f770f
commit
9a55a6ec39
2 changed files with 8 additions and 0 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue