Don't throw away vm in render

This commit is contained in:
Tangent Wantwight 2023-07-28 18:49:43 -04:00
parent 2f475d711f
commit 371ca2b512

12
3x5.js
View file

@ -83,13 +83,11 @@ const display = document.createElement("blockquote");
const debugDisplay = document.createElement("pre");
function render() {
const html = renderCard(
{
mode: "render",
output: "",
},
theCard.code
);
const vm = {
mode: /** @type {ScriptType} */ ("render"),
output: "",
};
const html = renderCard(vm, theCard.code);
state.textContent = JSON.stringify(theCard, null, 2);
display.innerHTML = html;