Merge pull request #80 from dillonzq/fix/toc_script

fix(toc): fix toc script bug
This commit is contained in:
Dillon 2020-02-18 17:53:26 +08:00 committed by GitHub
commit 16320fa91b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View file

@ -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 {

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long