mirror of
https://github.com/dillonzq/LoveIt.git
synced 2024-12-01 20:50:34 +01:00
Merge pull request #80 from dillonzq/fix/toc_script
fix(toc): fix toc script bug
This commit is contained in:
commit
16320fa91b
3 changed files with 3 additions and 3 deletions
|
@ -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 {
|
||||||
|
|
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