diff --git a/packages/virtual-core/src/index.ts b/packages/virtual-core/src/index.ts index ae9cca58..ddddf9b0 100644 --- a/packages/virtual-core/src/index.ts +++ b/packages/virtual-core/src/index.ts @@ -79,7 +79,7 @@ export const observeElementRect = ( handler(element.getBoundingClientRect()) - if (typeof ResizeObserver === 'undefined') { + if (!targetWindow.ResizeObserver) { return () => {} }