Skip to content

Commit

Permalink
Run lint
Browse files Browse the repository at this point in the history
  • Loading branch information
andriuss authored and plouc committed Feb 26, 2023
1 parent 0cdfedf commit b35ef90
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/core/src/hooks/useMeasure.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ export const useMeasure = () => {

const [observer] = useState(() => {
// Check if ResizeObserver is defined in current env (could be browser, node.js, jsdom etc.).
if (typeof ResizeObserver === 'undefined') return null
if (typeof ResizeObserver === 'undefined') return null

return new ResizeObserver(([entry]) => setBounds(entry.contentRect))
})

Expand Down

0 comments on commit b35ef90

Please sign in to comment.