Skip to content

Commit

Permalink
hide toc when there is no content
Browse files Browse the repository at this point in the history
  • Loading branch information
eddiemonge committed Nov 10, 2016
1 parent 734e868 commit 46cafde
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion js/toc.js
Expand Up @@ -21,6 +21,7 @@
return this.id;
}), output = $(this);
if (!headers.length || headers.length < settings.minimumHeaders || !output.length) {
output.hide();
return;
}

Expand Down Expand Up @@ -79,4 +80,4 @@

render[settings.showEffect]();
};
})(jQuery);
})(jQuery);

0 comments on commit 46cafde

Please sign in to comment.