mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-06-26 12:58:39 +00:00
lint
This commit is contained in:
@@ -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';
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user