parse null/undefined correctly
This commit is contained in:
parent
f2e1ec1a7b
commit
544831269f
|
@ -135,6 +135,10 @@ function serveControls() {
|
||||||
parts[1] = true;
|
parts[1] = true;
|
||||||
} else if ('false' === parts[1]) {
|
} else if ('false' === parts[1]) {
|
||||||
parts[1] = false;
|
parts[1] = false;
|
||||||
|
} else if ('null' === parts[1]) {
|
||||||
|
parts[1] = null;
|
||||||
|
} else if ('undefined' === parts[1]) {
|
||||||
|
parts[1] = undefined;
|
||||||
}
|
}
|
||||||
conf[parts[0]] = parts[1];
|
conf[parts[0]] = parts[1];
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue