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 signal = controller.signal;
|
||||
this.controllers[imgIndex] = controller;
|
||||
const urlToFetch = this.items[imgIndex]?.src;
|
||||
const urlToFetch = this.shown[imgIndex]?.src;
|
||||
if (urlToFetch) {
|
||||
fetch(urlToFetch, { method: "GET", signal }).catch(() => {});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user