Skip to content

Commit fd69003

Browse files
[getsentry/action-github-commit] Auto commit
1 parent e6df89a commit fd69003

1 file changed

Lines changed: 10 additions & 2 deletions

File tree

src/components/focus-active-link.tsx

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,11 @@ export function ScrollActiveLink({activeLinkSelector}: Props) {
3737
}
3838

3939
const scrollContainer = findScrollContainer(firstLink);
40-
if (!scrollContainer || scrollContainer === document.body || scrollContainer === document.documentElement) {
40+
if (
41+
!scrollContainer ||
42+
scrollContainer === document.body ||
43+
scrollContainer === document.documentElement
44+
) {
4145
return undefined;
4246
}
4347

@@ -64,7 +68,11 @@ export function ScrollActiveLink({activeLinkSelector}: Props) {
6468

6569
// Find the actual scrollable container (could be .toc, .sidebar, or another element)
6670
const scrollContainer = findScrollContainer(activeLink);
67-
if (!scrollContainer || scrollContainer === document.body || scrollContainer === document.documentElement) {
71+
if (
72+
!scrollContainer ||
73+
scrollContainer === document.body ||
74+
scrollContainer === document.documentElement
75+
) {
6876
return;
6977
}
7078

0 commit comments

Comments
 (0)