mirror of
https://github.com/dillonzq/LoveIt.git
synced 2024-11-14 10:56:16 +01:00
fix(toc): fix toc script bug
This commit is contained in:
parent
454f710b80
commit
3bdf10ffea
3 changed files with 3 additions and 3 deletions
|
@ -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
Loading…
Reference in a new issue