Patch setvalue npe for now... todo fix properly
This commit is contained in:
parent
3e890479e5
commit
62025e9c59
2 changed files with 5 additions and 1 deletions
|
@ -3,7 +3,7 @@ const url_tag = location.hash.slice(1);
|
||||||
// console.log(url_tag);
|
// console.log(url_tag);
|
||||||
|
|
||||||
|
|
||||||
const BUILD_VERSION = "7.0.12";
|
const BUILD_VERSION = "7.0.13";
|
||||||
|
|
||||||
function setTitle() {
|
function setTitle() {
|
||||||
let text;
|
let text;
|
||||||
|
|
4
utils.js
4
utils.js
|
@ -53,6 +53,10 @@ function setHTML(id, html) {
|
||||||
|
|
||||||
function setValue(id, value) {
|
function setValue(id, value) {
|
||||||
let el = document.getElementById(id);
|
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.value = value;
|
||||||
el.dispatchEvent(new Event("change"));
|
el.dispatchEvent(new Event("change"));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue