mirror of
https://github.com/samsonjs/spirit-tracker.git
synced 2026-03-25 09:25:51 +00:00
feat: Proper images
This commit is contained in:
parent
ec45d3f764
commit
b8bbb091b7
1 changed files with 1 additions and 1 deletions
|
|
@ -54,6 +54,6 @@ export function esc(s) {
|
|||
export function renderThumbHtml(imgUrl, cls = "thumb") {
|
||||
const img = normImg(imgUrl);
|
||||
if (!img) return `<div class="thumbPlaceholder"></div>`;
|
||||
return `<img class="${esc(cls)}" src="${esc(img)}" alt="" loading="lazy" onerror="this.style.display='none'" />`;
|
||||
return `<img referrerpolicy="no-referrer" class="${esc(cls)}" src="${esc(img)}" alt="" loading="lazy" onerror="this.style.display='none'" />`;
|
||||
}
|
||||
|
||||
Loading…
Reference in a new issue