From 697c5f2641ef0a9c02002a73b25cbd02c500a4ac Mon Sep 17 00:00:00 2001 From: Steve Dunham Date: Sat, 28 Mar 2026 09:36:05 -0700 Subject: [PATCH] fix updating of javascript/scheme in playground --- playground/src/main.ts | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/playground/src/main.ts b/playground/src/main.ts index cdf3228..b76f4e1 100644 --- a/playground/src/main.ts +++ b/playground/src/main.ts @@ -283,11 +283,8 @@ const language: EditorDelegate = { }); } setOutput(res.output) - // less flashy version - if (state.selected.value === JAVASCRIPT) - ipc.sendMessage("compile", [fileName, "javascript"]).then(js => state.javascript.value = bundle(js)); - if (state.selected.value === SCHEME) - ipc.sendMessage("compile", [fileName, "scheme"]).then(scheme=> state.scheme.value = scheme); + state.javascript.value = "" + state.scheme.value = "" return diags; } catch (e) { console.log("ERR", e);