frontend for xcvr appview

maybe her

+6 -2
+6 -2
src/lib/components/Transmitter.svelte
··· 19 19 let imageWidth: number | undefined; 20 20 let imageHeight: number | undefined; 21 21 $effect(() => { 22 - imageWidth = image?.naturalWidth; 23 - imageHeight = image?.naturalHeight; 22 + if (image) { 23 + image.onload = () => { 24 + imageWidth = image?.naturalWidth; 25 + imageHeight = image?.naturalHeight; 26 + }; 27 + } 24 28 }); 25 29 $effect(() => { 26 30 if (ctx) {