mirror of
https://git.adityakumar.xyz/hugo-theme-even.git
synced 2024-11-08 22:49:44 +00:00
parent
7dfedd3440
commit
708de67fd6
1 changed files with 1 additions and 1 deletions
|
@ -113,7 +113,7 @@ Even._initToc = function() {
|
|||
$($toclink).removeClass('active');
|
||||
$($tocLinkLis).removeClass('has-active');
|
||||
|
||||
if (activeTocIndex !== -1) {
|
||||
if (activeTocIndex !== -1 && $toclink[activeTocIndex] != null) {
|
||||
$($toclink[activeTocIndex]).addClass('active');
|
||||
let ancestor = $toclink[activeTocIndex].parentNode;
|
||||
while (ancestor.tagName !== 'NAV') {
|
||||
|
|
Loading…
Reference in a new issue