Don't throw away vm in render
This commit is contained in:
parent
2f475d711f
commit
371ca2b512
1 changed files with 5 additions and 7 deletions
12
3x5.js
12
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;
|
||||
|
|
Loading…
Reference in a new issue