From 59d1048bf7bd9368f338d8baced8097b5b1b08b3 Mon Sep 17 00:00:00 2001 From: rachel-mp4 Date: Thu, 16 Oct 2025 13:14:44 -0400 Subject: [PATCH] this could be it --- src/lib/wscontext.svelte.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/lib/wscontext.svelte.ts b/src/lib/wscontext.svelte.ts index 664e83f..a1b586c 100644 --- a/src/lib/wscontext.svelte.ts +++ b/src/lib/wscontext.svelte.ts @@ -207,13 +207,13 @@ export class WSContext { this.mediaactive = false } } + cancelImage = () => { if (this.mediaactive) { pubImage(undefined, undefined, this) this.myMedia = undefined this.mediaactive = false } - } initImage = (blob: File) => { @@ -232,9 +232,10 @@ export class WSContext { response.json().then((atpblob) => { if (this.myMedia) { this.myMedia.atpblob = atpblob + } else { + console.error("i don't have a media at the time of recieve atblob: ", atpblob) } - } - ) + }) } else { throw new Error(`HTTP ${response.status}`) } -- 2.51.2