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