Merge pull request #80 from dillonzq/fix/toc_script
fix(toc): fix toc script bug
This commit is contained in:
@@ -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 {
|
||||
|
||||
2
static/js/theme.min.js
vendored
2
static/js/theme.min.js
vendored
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user