Skip to content
This repository was archived by the owner on Mar 9, 2022. It is now read-only.

Commit

Permalink
fix(toc): fix toc script bug
Browse files Browse the repository at this point in the history
  • Loading branch information
dillonzq committed Feb 18, 2020
1 parent 454f710 commit 3bdf10f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/js/theme.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@
initToc() {
const tocContainer = document.getElementById('post-toc');
if (tocContainer !== null) {
const toc = tocContainer.getElementById('TableOfContents');
const toc = document.getElementById('TableOfContents');
if (toc === null) {
tocContainer.parentElement.removeChild(tocContainer);
} else {
Expand Down
2 changes: 1 addition & 1 deletion static/js/theme.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 3bdf10f

Please sign in to comment.