tangled
alpha
login
or
join now
moth11.net
/
xcvr
2
fork
atom
frontend for xcvr appview
2
fork
atom
overview
issues
pulls
pipelines
maybe her
moth11.net
5 months ago
fa8e61f5
5a07bd60
+6
-2
1 changed file
expand all
collapse all
unified
split
src
lib
components
Transmitter.svelte
+6
-2
src/lib/components/Transmitter.svelte
···
19
19
let imageWidth: number | undefined;
20
20
let imageHeight: number | undefined;
21
21
$effect(() => {
22
22
-
imageWidth = image?.naturalWidth;
23
23
-
imageHeight = image?.naturalHeight;
22
22
+
if (image) {
23
23
+
image.onload = () => {
24
24
+
imageWidth = image?.naturalWidth;
25
25
+
imageHeight = image?.naturalHeight;
26
26
+
};
27
27
+
}
24
28
});
25
29
$effect(() => {
26
30
if (ctx) {