Fix pfp error loading

This commit is contained in:
Thomas Mathews 2023-01-24 10:53:42 -08:00
parent 062ddda3d9
commit 0bc1120c37
2 changed files with 4 additions and 0 deletions

View file

@ -329,6 +329,9 @@ function view_render_event(model, ev, force=false) {
div.innerHTML = html;
const el = div.firstChild;
model.elements[ev.id] = el;
const pfp = find_node("img.pfp", el)
if (pfp)
pfp.addEventListener("error", onerror_pfp);
return el;
}