Skip to content

Commit 6b905af

Browse files
author
Callie Riggins
committed
Remove unnecessary typeof window check
1 parent 6bcce27 commit 6b905af

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

src/useInView.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,6 @@ export function useInView({
115115
const entryTarget = state.entry?.target;
116116
const previousEntryTarget = React.useRef<Element>();
117117
if (
118-
typeof window !== 'undefined' &&
119118
!ref &&
120119
entryTarget &&
121120
!triggerOnce &&

0 commit comments

Comments
 (0)