From b354565619802f0d3bc5035d89237d5c1f67434e Mon Sep 17 00:00:00 2001 From: Kyren223 Date: Sat, 10 Oct 2026 06:06:22 +0300 Subject: Fixes for htmx --- public/my_uptime.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'public/my_uptime.js') diff --git a/public/my_uptime.js b/public/my_uptime.js index 1fdb457..b5f3ca2 100644 --- a/public/my_uptime.js +++ b/public/my_uptime.js @@ -13,7 +13,7 @@ async function updateUptime() { } // Run on page load after all DOM elements loaded -document.addEventListener("DOMContentLoaded", () => { +document.addEventListener("htmx:load", () => { updateUptime(); setInterval(updateUptime, 5 * 1000); // in ms }); -- cgit v1.3.1