diff options
| author | Kyren223 <contact@kyren.codes> | 2026-10-10 06:06:22 +0300 |
|---|---|---|
| committer | Kyren223 <contact@kyren.codes> | 2026-10-10 06:06:22 +0300 |
| commit | b354565619802f0d3bc5035d89237d5c1f67434e (patch) | |
| tree | 88a084330f62e1e5f56fe5048b40512e39f9a978 /public/my_uptime.js | |
| parent | 3c7f9700b91e60937f0ccfb5d036c1e670c00511 (diff) | |
Fixes for htmx
Diffstat (limited to 'public/my_uptime.js')
| -rw-r--r-- | public/my_uptime.js | 2 |
1 files changed, 1 insertions, 1 deletions
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 }); |
