diff options
author | WlodekM <[email protected]> | 2024-11-30 21:28:43 +0200 |
---|---|---|
committer | WlodekM <[email protected]> | 2024-11-30 21:28:43 +0200 |
commit | 522ae475bb28a9746fc675423d119dbfcde70bfd (patch) | |
tree | 6e99c24dfefe08d16ca1281507aa31264ba6f10f /pages/main | |
parent | beb7b741c1c6352a1930318489e15bb00eccc7a6 (diff) |
a
Diffstat (limited to 'pages/main')
-rw-r--r-- | pages/main/page.js | 6 |
1 files changed, 4 insertions, 2 deletions
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); |