Skip to content

Commit

Permalink
fix(screenshot): Fixed typo in waitForImagesOnViewport (#541)
Browse files Browse the repository at this point in the history
  • Loading branch information
TriPSs committed Dec 6, 2023
1 parent 0b57805 commit 27a4d8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/screenshot/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const waitForImagesOnViewport = page =>
Promise.all(
elements
.filter(el => {
if (el.naturalHeight === 0 || el.naturalWeight === 0) return false
if (el.naturalHeight === 0 || el.naturalWidth === 0) return false
const { top, left, bottom, right } = el.getBoundingClientRect()
return (
top >= 0 &&
Expand Down

0 comments on commit 27a4d8b

Please sign in to comment.