diff options
-rw-r--r-- | pages/main/page.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pages/main/page.js b/pages/main/page.js index 928e360..090e314 100644 --- a/pages/main/page.js +++ b/pages/main/page.js @@ -98,7 +98,7 @@ export function onload() { .html(md.render(msg?.content)) .child('div') .for(msg.attachments, a => { - returnhtml('img').class('attachment').attr('src', a)} + return html('img').class('attachment').attr('src', a)} ) .up() .up() @@ -110,7 +110,7 @@ export function onload() { msgArea.innerHTML = ""; // :+1: - for (const msg of window.stores.sdlib.messages) { + for (const msg of window.stores.sdlib.messages.reverse()) { createMessage(msg) } scrollToBottomOfElement(msgArea.parentElement); |