aboutsummaryrefslogtreecommitdiff
path: root/static
diff options
context:
space:
mode:
Diffstat (limited to 'static')
-rw-r--r--static/js/timeago.ts2
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);