summaryrefslogtreecommitdiff
path: root/public/my_uptime.js
diff options
context:
space:
mode:
authorKyren223 <contact@kyren.codes>2026-10-09 03:40:03 +0300
committerKyren223 <contact@kyren.codes>2026-10-09 03:40:03 +0300
commitd3aa8982bfb70cda8d04130347e2a870aebd2d19 (patch)
treeebc477e34e054ed9d33fc78cef78c1841b51dcb9 /public/my_uptime.js
parent9b03d2790b8b8db1b5a6755b6130f37e5f7f2455 (diff)
New blog post and a bunch of unrelated website changes
Diffstat (limited to 'public/my_uptime.js')
-rw-r--r--public/my_uptime.js7
1 files changed, 4 insertions, 3 deletions
diff --git a/public/my_uptime.js b/public/my_uptime.js
index 25f549a..1fdb457 100644
--- a/public/my_uptime.js
+++ b/public/my_uptime.js
@@ -13,6 +13,7 @@ async function updateUptime() {
}
// Run on page load after all DOM elements loaded
-DOMContentLoaded(updateUptime());
-
-setInterval(updateUptime, 5 * 1000); // in ms
+document.addEventListener("DOMContentLoaded", () => {
+ updateUptime();
+ setInterval(updateUptime, 5 * 1000); // in ms
+});