2
2
mirror of https://git.coolaj86.com/coolaj86/telebit.js.git synced 2025-04-21 19:40:37 +00:00

fix bad if

This commit is contained in:
AJ ONeal 2018-06-11 15:15:07 -06:00
parent 32ec067c63
commit a0f8b78cc2

View File

@ -236,7 +236,7 @@ function serveControls() {
if (/status/.test(opts.path)) { if (/status/.test(opts.path)) {
res.end( res.end(
'{"status":' + (state.config.disable ? 'disabled' : 'enabled') '{"status":' + (state.config.disable ? 'disabled' : 'enabled')
+ ',"ready":' + (state.config.relay && (state.config.token || state.config.agreeTos)) ? 'true' : 'false' + ',"ready":' + ((state.config.relay && (state.config.token || state.config.agreeTos)) ? 'true' : 'false')
+ '}'); + '}');
return; return;
} }