diff options
author | tdro <tdro@noreply.example.com> | 2023-10-17 18:54:19 -0400 |
---|---|---|
committer | tdro <tdro@noreply.example.com> | 2023-10-17 18:54:19 -0400 |
commit | 187e4ff528ee5395efb52f20f95d9f9a1c7d83a6 (patch) | |
tree | f072cee906a7ec73f838ee8cfad2fe44e1cd8088 /static/js | |
parent | 95048ae38f44b6510c526631ed9fedd605e1db2c (diff) | |
download | canory-187e4ff528ee5395efb52f20f95d9f9a1c7d83a6.tar.gz canory-187e4ff528ee5395efb52f20f95d9f9a1c7d83a6.tar.bz2 canory-187e4ff528ee5395efb52f20f95d9f9a1c7d83a6.zip |
themes/default/layouts/_default/home.archives: Pull out time line
Diffstat (limited to 'static/js')
-rw-r--r-- | static/js/timeago.ts | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/static/js/timeago.ts b/static/js/timeago.ts index 9cc5370..f794c4a 100644 --- a/static/js/timeago.ts +++ b/static/js/timeago.ts @@ -24,6 +24,8 @@ (function (element) { try { + if (element.dataset.type === "disabled") return; + const time: millisecond = new Date(element.dateTime) || new Date(); const interval: second = ((new Date().getTime() - time.getTime()) / 1000); |