diff --git a/src/lib/components/Transmitter.svelte b/src/lib/components/Transmitter.svelte index a78fc9d..0c7ac45 100644 --- a/src/lib/components/Transmitter.svelte +++ b/src/lib/components/Transmitter.svelte @@ -76,10 +76,10 @@ const convertFileToImageItem = (blob: File) => { const blobUrl = URL.createObjectURL(blob); const img = document.createElement("img"); + img.src = blobUrl; img.onload = () => { URL.revokeObjectURL(blobUrl); }; - img.src = blobUrl; const image: Image = { type: "image", id: 0,