diff options
Diffstat (limited to 'frontend/src/main.ts')
| -rw-r--r-- | frontend/src/main.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/frontend/src/main.ts b/frontend/src/main.ts index 8f43d25..7aea405 100644 --- a/frontend/src/main.ts +++ b/frontend/src/main.ts @@ -175,7 +175,6 @@ function createNoteElement(note: Note): HTMLElement { note.media.forEach(item => { const img = document.createElement('img'); img.src = item.url; - img.src = item.url; img.alt = item.alt || ''; img.className = item.alt ? 'has-alt' : 'no-alt'; if (item.width && item.height) { @@ -189,6 +188,7 @@ function createNoteElement(note: Note): HTMLElement { img.onerror = () => { const errDiv = document.createElement('div'); errDiv.className = 'note-media-error'; + errDiv.title = item.url; const icon = document.createElement('img'); icon.src = '/image-unavailable.svg'; |
