fix: browser detection in BackToTopFAB (#1502)

This commit is contained in:
Zero King 2024-03-04 22:04:30 +08:00 committed by GitHub
parent 651a198898
commit 218039a0bc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -7,7 +7,7 @@ import { throttle } from "~/lib/utils"
import { FABBase } from "../ui/FAB"
const isShouldShow = () =>
typeof window !== undefined &&
typeof window !== "undefined" &&
document.documentElement.scrollTop > document.documentElement.clientHeight
export const BackToTopFAB = () => {