From: Laurent Mazet Date: Sun, 13 Sep 2020 20:09:16 +0000 (+0200) Subject: correct boolean type X-Git-Url: https://secure.softndesign.org/git/?a=commitdiff_plain;h=aee069d6f8bb4dc2a824a23442f8d88216c1ce03;p=trivabble.git correct boolean type --- diff --git a/public/trivabble.js b/public/trivabble.js index 1f65fa7..dad1192 100644 --- a/public/trivabble.js +++ b/public/trivabble.js @@ -85,7 +85,7 @@ /* cast from string to type */ if (type === "boolean") { - value = (value) ? true : false; + value = (value === "true"); } else if (type === "number") { value = Number(value); } else if (type === "object") {