Skip to content

Commit d513eb8

Browse files
authored
Update Citations.svelte (open-webui#21897)
Add on:error handler to img
1 parent 265d1b2 commit d513eb8

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/lib/components/chat/Messages/Citations.svelte

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,9 @@
178178
src="https://www.google.com/s2/favicons?sz=32&domain={citation.source.name}"
179179
alt="favicon"
180180
class="size-4 rounded-full shrink-0 border border-white dark:border-gray-850 bg-white dark:bg-gray-900"
181+
on:error={(e) => {
182+
e.target.src = '/favicon.png';
183+
}}
181184
/>
182185
{/each}
183186
</div>

0 commit comments

Comments
 (0)