From 544831269f3545d9b3cec5bdfbcf79253231baa8 Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Wed, 13 Jun 2018 13:21:42 -0600 Subject: [PATCH] parse null/undefined correctly --- bin/telebitd.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bin/telebitd.js b/bin/telebitd.js index 2c96579..008d7c9 100755 --- a/bin/telebitd.js +++ b/bin/telebitd.js @@ -135,6 +135,10 @@ function serveControls() { parts[1] = true; } else if ('false' === parts[1]) { parts[1] = false; + } else if ('null' === parts[1]) { + parts[1] = null; + } else if ('undefined' === parts[1]) { + parts[1] = undefined; } conf[parts[0]] = parts[1]; });