summaryrefslogtreecommitdiff
path: root/client/simple/src
diff options
context:
space:
mode:
authorMarkus Heiser <markus.heiser@darmarIT.de>2026-07-09 18:37:41 +0200
committerGitHub <noreply@github.com>2026-07-09 18:37:41 +0200
commit8456831a04e904afdf3057dcdbe9925e8a37377c (patch)
tree05eecb8dd19b664826b9372b29872a76b9a6a335 /client/simple/src
parentb512eaa272c0ad6e6c2cca7c6f67dc1feb0ce1bd (diff)
[mod] show img_load_error.svg if thumbnail fails to load (#6368)
* [mod] show img_load_error.svg if thumbnail fails to load (#6368) Brave and a few other engines occasionally provide dead URLs for the thumbnails, which looks pretty ugly in the UI. As already with the image search, in case of an error img_load_error.svg should be displayed here. Signed-off-by: Markus Heiser <markus.heiser@darmarit.de> * [build] /static (#6368) --------- Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
Diffstat (limited to 'client/simple/src')
-rw-r--r--client/simple/src/js/main/results.ts5
1 files changed, 3 insertions, 2 deletions
diff --git a/client/simple/src/js/main/results.ts b/client/simple/src/js/main/results.ts
index 0f8692345..29cab399a 100644
--- a/client/simple/src/js/main/results.ts
+++ b/client/simple/src/js/main/results.ts
@@ -35,8 +35,9 @@ const imageLoader = (resultElement: HTMLElement): void => {
}, 1000) as unknown as number;
};
-const imageThumbnails: NodeListOf<HTMLImageElement> =
- document.querySelectorAll<HTMLImageElement>("#urls img.image_thumbnail");
+const imageThumbnails: NodeListOf<HTMLImageElement> = document.querySelectorAll<HTMLImageElement>(
+ "#urls img.image_thumbnail, img.thumbnail"
+);
for (const thumbnail of imageThumbnails) {
if (thumbnail.complete && thumbnail.naturalWidth === 0) {
thumbnail.src = `${settings.theme_static_path}/img/img_load_error.svg`;