Skip to content

Commit

Permalink
apply suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
YuanboXue-Amber committed Jun 5, 2024
1 parent 4d2088f commit 8a60b26
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 @@ -79,7 +79,7 @@ export const observeElementRect = <T extends Element>(

handler(element.getBoundingClientRect())

if (typeof ResizeObserver === 'undefined') {
if (!targetWindow.ResizeObserver) {
return () => {}
}

Expand Down

0 comments on commit 8a60b26

Please sign in to comment.