mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-10-11 11:18:10 +02:00
Prevent js exception
This commit is contained in:
@@ -94,4 +94,5 @@
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
window.initCurrentNav = initCurrentNav;
|
||||||
});
|
});
|
@@ -42,7 +42,7 @@
|
|||||||
{% if local_md_headings or local_subfolders %}
|
{% if local_md_headings or local_subfolders %}
|
||||||
<div class="local-md-headings">
|
<div class="local-md-headings">
|
||||||
{% if 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">
|
<p class="caption" role="heading">
|
||||||
<span class="caption-text">Current Index</span>
|
<span class="caption-text">Current Index</span>
|
||||||
</p>
|
</p>
|
||||||
|
Reference in New Issue
Block a user