diff options
| author | Guillermo Serrahima <dev@vylion.com> | 2026-07-14 23:16:20 +0200 |
|---|---|---|
| committer | Guillermo Serrahima <dev@vylion.com> | 2026-07-14 23:22:02 +0200 |
| commit | 19bbdcfb301d62d59310b9f460f619259e0e1a81 (patch) | |
| tree | 7ad493d51478eb2171817424316670d8d7512a34 /frontend/src/main.ts | |
| parent | 10e54b1bb7979dc21911afce0d20cffc4a2d038a (diff) | |
| download | llostre-19bbdcfb301d62d59310b9f460f619259e0e1a81.tar.xz llostre-19bbdcfb301d62d59310b9f460f619259e0e1a81.zip | |
Tidied up dependencies
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'; |
