fix updating of javascript/scheme in playground
Some checks failed
Publish Playground / build (push) Has been cancelled
Publish Playground / deploy (push) Has been cancelled

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) setOutput(res.output)
// less flashy version state.javascript.value = ""
if (state.selected.value === JAVASCRIPT) state.scheme.value = ""
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);
return diags; return diags;
} catch (e) { } catch (e) {
console.log("ERR", e); console.log("ERR", e);