refac
This commit is contained in:
1 parent
ff49217206
commit
890bfd0d97
3 files changed
+9
-6
No files matched your search
@@ -9,6 +9,7 @@
|
||||
|
||||
export let src = '';
|
||||
export let alt = '';
|
||||
export let allowExternal = false;
|
||||
|
||||
export let className = ` w-full ${($settings?.highContrastMode ?? false) ? '' : 'outline-hidden focus:outline-hidden'}`;
|
||||
|
||||
@@ -20,7 +21,7 @@
|
||||
const i18n = getContext('i18n');
|
||||
|
||||
let _src = '';
|
||||
$: _src = safeImageUrl(src.startsWith('/') ? `${WEBUI_BASE_URL}${src}` : src);
|
||||
$: _src = safeImageUrl(src.startsWith('/') ? `${WEBUI_BASE_URL}${src}` : src, allowExternal);
|
||||
|
||||
let showImagePreview = false;
|
||||
</script>
|
||||
|
||||
Reference in new issue
Block a user