mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-11-04 22:38:43 +00:00
Merge pull request #5083 from naturalcrit/fix-broken-image
just never use broken-image
This commit is contained in:
@@ -354,10 +354,7 @@ class ImageWidget extends WidgetType {
|
|||||||
img.className = 'cm-preview';
|
img.className = 'cm-preview';
|
||||||
img.src = this.url;
|
img.src = this.url;
|
||||||
|
|
||||||
img.onerror = ()=>{
|
if (img.onerror) return document.createElement('span');
|
||||||
img.src = '/icons/broken-image.jpg';
|
|
||||||
};
|
|
||||||
|
|
||||||
return img;
|
return img;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user