mirror of
https://github.com/greflm13/StaticGalleryBuilder.git
synced 2026-02-05 02:59:27 +00:00
fixed wrong preload on filtering
This commit is contained in:
@@ -54,7 +54,7 @@ class PhotoGallery {
|
|||||||
const controller = new AbortController();
|
const controller = new AbortController();
|
||||||
const signal = controller.signal;
|
const signal = controller.signal;
|
||||||
this.controllers[imgIndex] = controller;
|
this.controllers[imgIndex] = controller;
|
||||||
const urlToFetch = this.items[imgIndex]?.src;
|
const urlToFetch = this.shown[imgIndex]?.src;
|
||||||
if (urlToFetch) {
|
if (urlToFetch) {
|
||||||
fetch(urlToFetch, { method: "GET", signal }).catch(() => {});
|
fetch(urlToFetch, { method: "GET", signal }).catch(() => {});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user