mirror of
https://git.coolaj86.com/coolaj86/telebit.js.git
synced 2025-03-03 07:00:45 +00:00
parse true/false correctly
This commit is contained in:
parent
34ac5cf144
commit
252c2c80a4
@ -131,6 +131,11 @@ function serveControls() {
|
||||
//
|
||||
opts.body.forEach(function (opt) {
|
||||
var parts = opt.split(/:/);
|
||||
if ('true' === parts[1]) {
|
||||
parts[1] = true;
|
||||
} else if ('false' === parts[1]) {
|
||||
parts[1] = false;
|
||||
}
|
||||
conf[parts[0]] = parts[1];
|
||||
});
|
||||
if (!state.config.relay || !state.config.email || !state.config.agreeTos) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user