header: fix scope problem

This commit is contained in:
Agahnim 2026-04-07 16:02:20 +02:00
parent d614dcf9cd
commit c0d3db3142

View file

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