From 1c70eb3248e7b660923ab0c36d8a9278cac737a1 Mon Sep 17 00:00:00 2001 From: Vantz Stockwell Date: Mon, 30 Mar 2026 10:39:56 -0400 Subject: [PATCH] fix: TS2345 null check on canvas context in RDP frame loop Co-Authored-By: Claude Opus 4.6 (1M context) --- src/composables/useRdp.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/composables/useRdp.ts b/src/composables/useRdp.ts index cb75735..9515db6 100644 --- a/src/composables/useRdp.ts +++ b/src/composables/useRdp.ts @@ -322,6 +322,7 @@ export function useRdp(): UseRdpReturn { rafScheduled = false; if (fetchPending) return; fetchPending = true; + if (!ctx) return; const rendered = await fetchAndRender(sessionId, width, height, ctx); fetchPending = false; if (rendered && !connected.value) connected.value = true;