diff options
author | Dillon <dillonzq@outlook.com> | 2020-02-18 12:52:19 +0300 |
---|---|---|
committer | Dillon <dillonzq@outlook.com> | 2020-02-18 12:52:19 +0300 |
commit | 3bdf10ffeaf5f895ce59f1bfddad172630432ab8 (patch) | |
tree | 71cc9e370635479a6d9336dc5188611b469e4084 /src | |
parent | 454f710b80811b0966756c3f87009d39270116ce (diff) |
fix(toc): fix toc script bug
Diffstat (limited to 'src')
-rw-r--r-- | src/js/theme.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/js/theme.js b/src/js/theme.js index 21e3917..5a3c325 100644 --- a/src/js/theme.js +++ b/src/js/theme.js @@ -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 { |