From 522ae475bb28a9746fc675423d119dbfcde70bfd Mon Sep 17 00:00:00 2001 From: WlodekM Date: Sat, 30 Nov 2024 21:28:43 +0200 Subject: a --- pages/main/page.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'pages') diff --git a/pages/main/page.js b/pages/main/page.js index 370b525..928e360 100644 --- a/pages/main/page.js +++ b/pages/main/page.js @@ -97,7 +97,9 @@ export function onload() { .class('post-content') .html(md.render(msg?.content)) .child('div') - .for(msg.attachments, a => html('img').class('attachment').attr('src', a)) + .for(msg.attachments, a => { + returnhtml('img').class('attachment').attr('src', a)} + ) .up() .up() .up() @@ -108,7 +110,7 @@ export function onload() { msgArea.innerHTML = ""; // :+1: - for (const msg of window.stores.sdlib.messages.reverse()) { + for (const msg of window.stores.sdlib.messages) { createMessage(msg) } scrollToBottomOfElement(msgArea.parentElement); -- cgit 1.4.1-2-gfad0