summaryrefslogtreecommitdiff
path: root/Omni/Jr
diff options
context:
space:
mode:
Diffstat (limited to 'Omni/Jr')
-rw-r--r--Omni/Jr/Web.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Omni/Jr/Web.hs b/Omni/Jr/Web.hs
index a316d74..2b7ba21 100644
--- a/Omni/Jr/Web.hs
+++ b/Omni/Jr/Web.hs
@@ -988,7 +988,7 @@ instance Lucid.ToHtml HomePage where
Lucid.makeAttribute "data-newest-ts" (tshow newestTimestamp),
Lucid.makeAttribute "hx-get" "/partials/recent-activity-new",
Lucid.makeAttribute "hx-trigger" "every 10s",
- Lucid.makeAttribute "hx-vals" "js:{since: this.dataset.newestTs}",
+ Lucid.makeAttribute "hx-vals" "js:{since: document.getElementById('recent-activity')?.dataset?.newestTs || 0}",
Lucid.makeAttribute "hx-target" "#activity-list",
Lucid.makeAttribute "hx-swap" "afterbegin"
]