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:
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 46a2deb..1d168ad 100644
--- a/src/js/theme.js
+++ b/src/js/theme.js
@@ -412,7 +412,7 @@ class Theme {
const rect = $page.getBoundingClientRect();
$toc.style.left = `${rect.left + rect.width + 20}px`;
$toc.style.maxWidth = `${$page.getBoundingClientRect().left - 20}px`;
- const $tocLinkElements = $tocCore.getElementsByTagName('a');
+ const $tocLinkElements = $tocCore.querySelectorAll('a:first-child');
const $tocLiElements = $tocCore.getElementsByTagName('li');
const $headerLinkElements = document.getElementsByClassName('headerLink');
const headerIsFixed = this.config.headerMode.desktop !== 'normal';