From 62025e9c5934e85c22c24c7a184ab1f5df9c03fa Mon Sep 17 00:00:00 2001 From: b Date: Sun, 27 Jun 2021 13:15:47 -0700 Subject: [PATCH] Patch setvalue npe for now... todo fix properly --- builder.js | 2 +- utils.js | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/builder.js b/builder.js index f115eaa..9f01b04 100644 --- a/builder.js +++ b/builder.js @@ -3,7 +3,7 @@ const url_tag = location.hash.slice(1); // console.log(url_tag); -const BUILD_VERSION = "7.0.12"; +const BUILD_VERSION = "7.0.13"; function setTitle() { let text; diff --git a/utils.js b/utils.js index 5c38360..8705150 100644 --- a/utils.js +++ b/utils.js @@ -53,6 +53,10 @@ function setHTML(id, html) { function setValue(id, value) { let el = document.getElementById(id); + if (el == null) { + console.log("WARN tried to set text value of id {"+id+"} to ["+value+"] but did not exist!"); + return; + } el.value = value; el.dispatchEvent(new Event("change")); }