diff --git a/Webserver/src/routes/image/+page.svelte b/Webserver/src/routes/image/+page.svelte index 2a68d21..4343918 100644 --- a/Webserver/src/routes/image/+page.svelte +++ b/Webserver/src/routes/image/+page.svelte @@ -10,6 +10,11 @@ let imageURL: string | null, lastImage: File; let uploadData: UploadData; + async function updateMatrix() { + await fetch('/api/redirect?endpoint=update'); + clearInterval(uploadData.interval); + } + async function placeImage() { const fdata = new FormData(); fdata.append('x', '0'); @@ -109,8 +114,13 @@
Placing image . . .
{uploadData.elapsed} seconds elapsed.
{:then} -Done!
-{uploadData.elapsed} seconds elapsed.
+ {#await updateMatrix()} +Updating matrix . . .
+{uploadData.elapsed} seconds elapsed.
+ {:then} +Done!
+{uploadData.elapsed} seconds elapsed.
+ {/await} {/await} {/await} {/await}