diff options
author | Khusika Dhamar Gusti <mail@khusika.com> | 2020-11-27 11:12:26 +0300 |
---|---|---|
committer | Khusika Dhamar Gusti <mail@khusika.com> | 2020-11-27 14:42:42 +0300 |
commit | 9151f85ce9bdd63cd6995d8fb3789bf9b62b6b3d (patch) | |
tree | d841891bd0e22da40c4c8392d33766dee625ca6a /src/js | |
parent | 1281b131090463d917eb412866007b888140cf3b (diff) |
fix(toc): Use data attributes for toc
Partially fixes: #401
Signed-off-by: Khusika Dhamar Gusti <mail@khusika.com>
Diffstat (limited to 'src/js')
-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 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); |