Patch setvalue npe for now... todo fix properly

This commit is contained in:
b 2021-06-27 13:15:47 -07:00
parent 3e890479e5
commit 62025e9c59
2 changed files with 5 additions and 1 deletions

View file

@ -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;

View file

@ -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"));
}