diff options
Diffstat (limited to 'src/js/theme.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); |