Skip to content

Commit cd37e77

Browse files
committed
do not shadow the observer in the upper scope
1 parent 67ed13e commit cd37e77

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

js13kpwa/app.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ const loadImages = function (image) {
6262
};
6363
};
6464
if ('IntersectionObserver' in window) {
65-
const observer = new IntersectionObserver((items, observer) => {
65+
const observer = new IntersectionObserver((items) => {
6666
items.forEach((item) => {
6767
if (item.isIntersecting) {
6868
loadImages(item.target);

0 commit comments

Comments
 (0)