From e3668a2f1c0037ae82e0f4d0feba2468c70ad217 Mon Sep 17 00:00:00 2001 From: "Timothy J. Baek" Date: Wed, 19 Jun 2024 14:56:51 -0700 Subject: [PATCH] refac --- src/lib/components/chat/Messages/UserMessage.svelte | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/lib/components/chat/Messages/UserMessage.svelte b/src/lib/components/chat/Messages/UserMessage.svelte index a3c1edfb0..7ac18e714 100644 --- a/src/lib/components/chat/Messages/UserMessage.svelte +++ b/src/lib/components/chat/Messages/UserMessage.svelte @@ -104,12 +104,7 @@ type="button" on:click={async () => { if (file?.url) { - getFileContentById(file.id).then((blob) => { - if (blob) { - const url = URL.createObjectURL(blob); - window.open(url, '_blank').focus(); - } - }); + window.open(`${file?.url}/content`, '_blank').focus(); } }} >