mirror of
https://github.com/open-webui/open-webui.git
synced 2026-10-15 04:18:18 +00:00
refac
This commit is contained in:
parent
35c927ba99
commit
ad4050275b
1 changed files with 3 additions and 2 deletions
|
|
@ -32,8 +32,9 @@
|
|||
draggable="false"
|
||||
class="{className} rounded-full shrink-0 object-cover"
|
||||
onerror={(event) => {
|
||||
if (!event.currentTarget.src.endsWith('/static/favicon.png')) {
|
||||
event.currentTarget.src = `${WEBUI_BASE_URL}/static/favicon.png`;
|
||||
const image = event.currentTarget as HTMLImageElement;
|
||||
if (!image.src.endsWith('/static/favicon.png')) {
|
||||
image.src = `${WEBUI_BASE_URL}/static/favicon.png`;
|
||||
}
|
||||
}}
|
||||
/>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue