fix(toc): fix toc script bug

This commit is contained in:
Dillon 2020-02-18 17:52:19 +08:00
parent 454f710b80
commit 3bdf10ffea
3 changed files with 3 additions and 3 deletions

View file

@ -147,7 +147,7 @@
initToc() { initToc() {
const tocContainer = document.getElementById('post-toc'); const tocContainer = document.getElementById('post-toc');
if (tocContainer !== null) { if (tocContainer !== null) {
const toc = tocContainer.getElementById('TableOfContents'); const toc = document.getElementById('TableOfContents');
if (toc === null) { if (toc === null) {
tocContainer.parentElement.removeChild(tocContainer); tocContainer.parentElement.removeChild(tocContainer);
} else { } else {

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long