Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
check if generatedImage exist
Browse files
src/lib/components/models/image/Image.svelte
CHANGED
@@ -7,7 +7,7 @@
|
|
7 |
export let generatedImage: string | undefined;
|
8 |
export let alt: string | undefined;
|
9 |
|
10 |
-
let loaded = src ? 0 : 1
|
11 |
|
12 |
// onMount(() => {
|
13 |
// const img = new Image();
|
|
|
7 |
export let generatedImage: string | undefined;
|
8 |
export let alt: string | undefined;
|
9 |
|
10 |
+
let loaded = src ? 0 : generatedImage ? 1 : 2;
|
11 |
|
12 |
// onMount(() => {
|
13 |
// const img = new Image();
|