fix source attr

This commit is contained in:
nate smith 2024-02-13 21:40:56 -08:00
parent 662cb8e25d
commit be36f130a4

View File

@ -82,7 +82,7 @@ class PoemLine extends HTMLDivElement {
return resp.json(); return resp.json();
}).then((payload) => { }).then((payload) => {
this.querySelector(".linetext").innerText = payload.Text; this.querySelector(".linetext").innerText = payload.Text;
this.querySelector(".linetext").setAttribute("data-source", payload.Source); this.querySelector(".linetext").setAttribute("data-source", payload.Source.Name);
}); });
} }
} }