From 1f53a4594a148acc6bd9292b91ff2877635e739b Mon Sep 17 00:00:00 2001 From: WlodekM Date: Sat, 30 Nov 2024 21:32:08 +0200 Subject: a --- pages/main/page.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pages') 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); -- cgit 1.4.1-2-gfad0