Skip to content

Commit

Permalink
apply code review
Browse files Browse the repository at this point in the history
  • Loading branch information
YuanboXue-Amber committed Jun 4, 2024
1 parent 31ac3e4 commit 4d2088f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/virtual-core/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ export class Virtualizer<
return _ro
}

if (typeof ResizeObserver === 'undefined' || !this.targetWindow) {
if (!this.targetWindow || !this.targetWindow.ResizeObserver) {
return null
}

Expand Down

0 comments on commit 4d2088f

Please sign in to comment.