Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/uPagge/uBlogger.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDillon <dillonzq@outlook.com>2020-02-18 12:52:19 +0300
committerDillon <dillonzq@outlook.com>2020-02-18 12:52:19 +0300
commit3bdf10ffeaf5f895ce59f1bfddad172630432ab8 (patch)
tree71cc9e370635479a6d9336dc5188611b469e4084 /src
parent454f710b80811b0966756c3f87009d39270116ce (diff)
fix(toc): fix toc script bug
Diffstat (limited to 'src')
-rw-r--r--src/js/theme.js2
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 {