header: fix scope problem

This commit is contained in:
Agahnim 2026-04-07 16:02:20 +02:00
parent 234b9e996a
commit 7d0038097d

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>