diff --git a/webui/src/components/display/BlobPreview.svelte b/webui/src/components/display/BlobPreview.svelte
index 9a7e37e..0071e90 100644
--- a/webui/src/components/display/BlobPreview.svelte
+++ b/webui/src/components/display/BlobPreview.svelte
@@ -5,7 +5,7 @@
import TextViewer from "./blobs/TextViewer.svelte";
export let address: string;
- $: ({ entity } = useEntity(address));
+ $: ({ entity, entityInfo } = useEntity(address));
$: mimeType = String($entity?.get("FILE_MIME"));
@@ -19,8 +19,9 @@
$: text = mimeType.startsWith("text");
$: pdf = mimeType.startsWith("application/pdf");
$: model = mimeType?.startsWith("model");
+ $: web = $entityInfo?.t == "Url";
- $: handled = audio || video || image || text || pdf || model;
+ $: handled = audio || video || image || text || pdf || model || web;
let imageLoaded = null;
@@ -86,6 +87,17 @@
{#if model}
{/if}
+ {#if web}
+ {#if imageLoaded != address}
+
+ {/if}
+ (imageLoaded = address)}
+ on:error={() => (handled = false)}
+ />
+ {/if}
{/if}