diff --git a/3x5.js b/3x5.js index 1e1dd67..355aa05 100644 --- a/3x5.js +++ b/3x5.js @@ -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;