mirror of
https://github.com/GitbookIO/gitbook.git
synced 2026-09-16 15:45:13 +00:00
Introduce error on purpose
This commit is contained in:
@@ -30,7 +30,7 @@ export function HeaderMobileMenu(props: Partial<React.ButtonHTMLAttributes<HTMLB
|
||||
}
|
||||
};
|
||||
|
||||
const windowRef = useRef(typeof window === 'undefined' ? null : window);
|
||||
const windowRef = useRef(window);
|
||||
useScrollListener(() => {
|
||||
if (window.scrollY >= scrollDistance) {
|
||||
setHasScrolled(true);
|
||||
|
||||
Reference in New Issue
Block a user