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:
authorKhusika Dhamar Gusti <mail@khusika.com>2020-11-27 11:12:26 +0300
committerKhusika Dhamar Gusti <mail@khusika.com>2020-11-27 14:42:42 +0300
commit9151f85ce9bdd63cd6995d8fb3789bf9b62b6b3d (patch)
treed841891bd0e22da40c4c8392d33766dee625ca6a /src
parent1281b131090463d917eb412866007b888140cf3b (diff)
fix(toc): Use data attributes for toc
Partially fixes: #401 Signed-off-by: Khusika Dhamar Gusti <mail@khusika.com>
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 5919e0f..518923f 100644
--- a/src/js/theme.js
+++ b/src/js/theme.js
@@ -397,7 +397,7 @@ class Theme {
initToc() {
const $tocCore = document.getElementById('TableOfContents');
if ($tocCore === null) return;
- if (document.getElementById('toc-static').getAttribute('kept') || this.util.isTocStatic()) {
+ if (document.getElementById('toc-static').getAttribute('data-kept') || this.util.isTocStatic()) {
const $tocContentStatic = document.getElementById('toc-content-static');
if ($tocCore.parentElement !== $tocContentStatic) {
$tocCore.parentElement.removeChild($tocCore);