aboutsummaryrefslogtreecommitdiff
path: root/static
diff options
context:
space:
mode:
authortdro <tdro@noreply.example.com>2023-11-30 17:11:23 -0500
committertdro <tdro@noreply.example.com>2023-11-30 17:11:23 -0500
commit602e7058ed234db7d18a2225c68323c089fe0622 (patch)
treefe0a07935bb3a395d39a5b3e91e848bb28a2bc59 /static
parent6fd0be790c4cd6e68374f6b88f9e60c74cbb4004 (diff)
downloadcanory-602e7058ed234db7d18a2225c68323c089fe0622.tar.gz
canory-602e7058ed234db7d18a2225c68323c089fe0622.tar.bz2
canory-602e7058ed234db7d18a2225c68323c089fe0622.zip
static/js/timeago: Cover scroll
Diffstat (limited to 'static')
-rw-r--r--static/js/timeago.ts4
1 files changed, 4 insertions, 0 deletions
diff --git a/static/js/timeago.ts b/static/js/timeago.ts
index 10206e3..edb3e9d 100644
--- a/static/js/timeago.ts
+++ b/static/js/timeago.ts
@@ -81,6 +81,10 @@
const substitution = setInterval(date, 4);
+ self.addEventListener("scroll", function () {
+ date("viewport");
+ });
+
self.addEventListener("DOMContentLoaded", function () {
setTimeout(function () {
clearInterval(substitution);