header: fix scope problem
This commit is contained in:
parent
6f8533f91b
commit
8193bc2275
1 changed files with 2 additions and 0 deletions
|
|
@ -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>
|
||||
Loading…
Add table
Add a link
Reference in a new issue