aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortdro <tdro@noreply.example.com>2023-04-14 16:36:28 -0400
committertdro <tdro@noreply.example.com>2023-04-14 16:36:28 -0400
commitc5380f601ff60132aa57d50061a921064ee74495 (patch)
tree3fa1e420d922e1620e771b9b7959d47e47464abf
parent18a33f07c4cffb1152be0c98dda3a21e9350046c (diff)
downloadcanory-c5380f601ff60132aa57d50061a921064ee74495.tar.gz
canory-c5380f601ff60132aa57d50061a921064ee74495.tar.bz2
canory-c5380f601ff60132aa57d50061a921064ee74495.zip
static/js/timeago.ts: load -> DOMContentLoaded
-rw-r--r--assets/js/index.js2
-rw-r--r--static/js/timeago.ts2
2 files changed, 2 insertions, 2 deletions
diff --git a/assets/js/index.js b/assets/js/index.js
index 1e267b9..fc1f6c3 100644
--- a/assets/js/index.js
+++ b/assets/js/index.js
@@ -587,7 +587,7 @@
}
};
const substitution = setInterval(date, 4);
- self.addEventListener("load", function() {
+ self.addEventListener("DOMContentLoaded", function() {
setTimeout(function() {
clearInterval(substitution);
setInterval(date, 1000);
diff --git a/static/js/timeago.ts b/static/js/timeago.ts
index f7567ed..81ae579 100644
--- a/static/js/timeago.ts
+++ b/static/js/timeago.ts
@@ -47,7 +47,7 @@
const substitution = setInterval(date, 4);
- self.addEventListener("load", function () {
+ self.addEventListener("DOMContentLoaded", function () {
setTimeout(function () {
clearInterval(substitution);
setInterval(date, 1000);