response = await fetch(url);
msgs = await(response.json());
if (response.ok) {
- msgs = JSON.parse(this.responseText);
document.getElementById(target_div).innerHTML = "" ;
// If we were given an explicit starting point, by all means start there.
function forum_render_one(div, msgnum, scroll_to) {
fetch_message = async() => {
response = await fetch("/ctdl/r/" + escapeHTMLURI(current_room) + "/" + msgs[i] + "/json");
- msg = response.json());
+ msg = await response.json();
if (response.ok) {
- msg = JSON.parse(this.responseText);
document.getElementById(div).innerHTML =
"<div class=\"ctdl-msg-wrapper\">" // begin message wrapper