parse true/false correctly
This commit is contained in:
parent
73a175a121
commit
f2e1ec1a7b
|
@ -131,6 +131,11 @@ function serveControls() {
|
||||||
//
|
//
|
||||||
opts.body.forEach(function (opt) {
|
opts.body.forEach(function (opt) {
|
||||||
var parts = opt.split(/:/);
|
var parts = opt.split(/:/);
|
||||||
|
if ('true' === parts[1]) {
|
||||||
|
parts[1] = true;
|
||||||
|
} else if ('false' === parts[1]) {
|
||||||
|
parts[1] = false;
|
||||||
|
}
|
||||||
conf[parts[0]] = parts[1];
|
conf[parts[0]] = parts[1];
|
||||||
});
|
});
|
||||||
if (!state.config.relay || !state.config.email || !state.config.agreeTos) {
|
if (!state.config.relay || !state.config.email || !state.config.agreeTos) {
|
||||||
|
|
Loading…
Reference in New Issue