mirror of
https://github.com/open-webui/open-webui.git
synced 2026-01-02 14:45:18 +00:00
fix: Update CitationModal.svelte (#20209)
* Update CitationModal.svelte * Update CitationModal.svelte
This commit is contained in:
parent
b3371033be
commit
d5ccd95293
1 changed files with 2 additions and 1 deletions
|
|
@ -3,6 +3,7 @@
|
||||||
import Modal from '$lib/components/common/Modal.svelte';
|
import Modal from '$lib/components/common/Modal.svelte';
|
||||||
import Tooltip from '$lib/components/common/Tooltip.svelte';
|
import Tooltip from '$lib/components/common/Tooltip.svelte';
|
||||||
import { WEBUI_API_BASE_URL } from '$lib/constants';
|
import { WEBUI_API_BASE_URL } from '$lib/constants';
|
||||||
|
import { settings } from '$lib/stores';
|
||||||
|
|
||||||
import XMark from '$lib/components/icons/XMark.svelte';
|
import XMark from '$lib/components/icons/XMark.svelte';
|
||||||
import Textarea from '$lib/components/common/Textarea.svelte';
|
import Textarea from '$lib/components/common/Textarea.svelte';
|
||||||
|
|
@ -163,7 +164,7 @@
|
||||||
{#if document.metadata?.html}
|
{#if document.metadata?.html}
|
||||||
<iframe
|
<iframe
|
||||||
class="w-full border-0 h-auto rounded-none"
|
class="w-full border-0 h-auto rounded-none"
|
||||||
sandbox="allow-scripts allow-forms allow-same-origin"
|
sandbox="allow-scripts allow-forms{($settings?.iframeSandboxAllowSameOrigin ?? false) ? ' allow-same-origin' : ''}"
|
||||||
srcdoc={document.document}
|
srcdoc={document.document}
|
||||||
title={$i18n.t('Content')}
|
title={$i18n.t('Content')}
|
||||||
></iframe>
|
></iframe>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue