fix updating of javascript/scheme in playground
Some checks are pending
Publish Playground / build (push) Waiting to run
Publish Playground / deploy (push) Blocked by required conditions

This commit is contained in:
2026-03-28 09:36:05 -07:00
parent babbd01975
commit 697c5f2641

View File

@@ -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);