I tamed the beast that was this stupid line of code

This commit is contained in:
Jesse James Isler 2022-03-31 14:03:32 +02:00
parent d41bea5e44
commit 0f16802dbc

View File

@ -231,9 +231,10 @@
function updateGoodRoles() {
let goodRoles = document.getElementById('rolecolor').value;
goodRoles.forEach(element => document.getElementById("tplaysbestwith").appendchild(document.createElement("LI")appendchild(.document.createTextNode(element)));
let x = document.createElement("LI").appendchild(document.createTextNode(element));
goodRoles.forEach(element => document.getElementById("tplaysbestwith").appendchild(x));
}
function updateDescription() {
document.getElementById("carddescription").innerHTML = document.getElementById("description").value;
}