Closed generic-github-user closed 6 years ago
This will also help with compatibility between newer and older posts: #14
Added if
statement to check if post contains a note:
if (post.note) {
var post_note = document.createElement("h5");
post_note.innerHTML = post.note;
post_main.appendChild(document.createElement("br"));
post_main.appendChild(document.createElement("br"));
post_main.appendChild(post_note);
}
Currently, posts without notes display
undefined
in place of a note.