diff --git a/index.html b/index.html index b25bb42..d5fe662 100644 --- a/index.html +++ b/index.html @@ -84,12 +84,12 @@ createApp({ } }, loadImages() { - images.forEach((info) => { + images.forEach((info, i) => { img = new Image() img.onload = () => { --this.imagesToLoad ++this.imagesLoaded - this.images.push(info) + this.images[i] = info } img.onerror = () => { --this.imagesToLoad