mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-03-26 03:03:32 +01:00
Prevent js exception
This commit is contained in:
parent
4cde1ed9e4
commit
e6fa74df61
@ -94,4 +94,5 @@
|
||||
});
|
||||
});
|
||||
}
|
||||
});
|
||||
window.initCurrentNav = initCurrentNav;
|
||||
});
|
||||
|
@ -42,7 +42,7 @@
|
||||
{% if local_md_headings or local_subfolders %}
|
||||
<div class="local-md-headings">
|
||||
{% if local_md_headings %}
|
||||
<div class="current-index" x-data x-init="initCurrentNav()">
|
||||
<div class="current-index" x-data x-init="typeof initCurrentNav === 'function' && initCurrentNav()">
|
||||
<p class="caption" role="heading">
|
||||
<span class="caption-text">Current Index</span>
|
||||
</p>
|
||||
|
Loading…
x
Reference in New Issue
Block a user