Spaces:
Sleeping
Sleeping
fix iframe
Browse files
src/lib/components/chat/markdown/Code.svelte
CHANGED
|
@@ -75,7 +75,13 @@
|
|
| 75 |
{/if}
|
| 76 |
{#if showPreview}
|
| 77 |
<div class="group relative">
|
| 78 |
-
<iframe
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 79 |
</div>
|
| 80 |
{:else}
|
| 81 |
<div class="group relative">
|
|
|
|
| 75 |
{/if}
|
| 76 |
{#if showPreview}
|
| 77 |
<div class="group relative">
|
| 78 |
+
<iframe
|
| 79 |
+
srcDoc={text}
|
| 80 |
+
class="h-[500px] w-full"
|
| 81 |
+
title="Preview"
|
| 82 |
+
sandbox="allow-scripts allow-popups"
|
| 83 |
+
referrerpolicy="no-referrer"
|
| 84 |
+
></iframe>
|
| 85 |
</div>
|
| 86 |
{:else}
|
| 87 |
<div class="group relative">
|