diff --git a/libraries/inview.js b/libraries/inview.js index b0a29bb7..a9c5bd37 100644 --- a/libraries/inview.js +++ b/libraries/inview.js @@ -157,6 +157,7 @@ return locks.includes(name); } function getMeasurement (element) { + if (!element?.getBoundingClientRect) return; const offset = element.getBoundingClientRect(); const height = offset.height; const width = offset.width;