0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-06-26 12:58:39 +00:00
This commit is contained in:
Víctor Losada Hernández
2026-05-23 11:45:44 +02:00
parent 03564b310f
commit 2078ba70bd
@@ -350,11 +350,10 @@ class ImageWidget extends WidgetType {
toDOM() { toDOM() {
const img = document.createElement('img'); const img = document.createElement('img');
img.loading = "lazy"; img.loading = 'lazy';
img.className = 'cm-preview'; img.className = 'cm-preview';
img.src = this.url; img.src = this.url;
img.onerror = ()=>{ img.onerror = ()=>{
img.src = 'client/icons/broken-image.jpg'; img.src = 'client/icons/broken-image.jpg';
}; };