mirror of
https://github.com/greflm13/StaticGalleryBuilder.git
synced 2026-04-17 11:30:08 +02: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