Fix logic error in toc-scroll

This commit is contained in:
iBug
2024-05-05 01:26:25 +08:00
parent 7daa7aceb3
commit bce2b50556
2 changed files with 2 additions and 2 deletions

View File

@ -88,7 +88,7 @@ $(function() {
var tocElement = document.querySelector("aside.sidebar__right.sticky");
if (!tocElement) return;
if (!window.getComputedStyle(tocElement).position !== "sticky") return;
if (window.getComputedStyle(tocElement).position !== "sticky") return;
if (target.parentElement.classList.contains("toc__menu") && target == target.parentElement.firstElementChild) {
// Scroll to top instead

File diff suppressed because one or more lines are too long