mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-11-24 14:16:54 +00:00
lint
This commit is contained in:
1 parent
03564b310f
commit
2078ba70bd
1 file changed
+1
-2
@@ -350,11 +350,10 @@ class ImageWidget extends WidgetType {
|
||||
|
||||
toDOM() {
|
||||
const img = document.createElement('img');
|
||||
img.loading = "lazy";
|
||||
img.loading = 'lazy';
|
||||
img.className = 'cm-preview';
|
||||
img.src = this.url;
|
||||
|
||||
|
||||
img.onerror = ()=>{
|
||||
img.src = 'client/icons/broken-image.jpg';
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user