mirror of
https://github.com/simon987/sist2.git
synced 2025-12-11 14:38:54 +00:00
update readme, UI tweak: don't show broken images
This commit is contained in:
@@ -136,6 +136,9 @@ function createDocCard(hit) {
|
||||
thumbnail = document.createElement("img");
|
||||
thumbnail.setAttribute("class", "card-img-top fit");
|
||||
thumbnail.setAttribute("src", `t/${hit["_source"]["index"]}/${hit["_id"]}`);
|
||||
thumbnail.addEventListener("error", () => {
|
||||
imgWrapper.remove();
|
||||
});
|
||||
}
|
||||
|
||||
//Thumbnail overlay
|
||||
|
||||
Reference in New Issue
Block a user