header: fix scope problem

This commit is contained in:
Agahnim 2026-04-07 16:02:20 +02:00
parent 6f8533f91b
commit 8193bc2275
Signed by: Agahnim
SSH key fingerprint: SHA256:Zj65PJnE0dRYye8Ltk/qDglynyXUxJngQ9qqx/VI+b4

View file

@ -27,6 +27,7 @@
</navbar> </navbar>
<script> <script>
(function() {
const dateEl = document.querySelector('current-date'); const dateEl = document.querySelector('current-date');
if (dateEl) { if (dateEl) {
const update = () => { const update = () => {
@ -39,4 +40,5 @@
update(); update();
setInterval(update, 1000); setInterval(update, 1000);
} }
})();
</script> </script>