diff --git a/src/blocks/custom.js b/src/blocks/custom.js index 573b1af..9d15d25 100644 --- a/src/blocks/custom.js +++ b/src/blocks/custom.js @@ -37,6 +37,7 @@ module.exports = { }, output: true, execute: function(inputs, block){ + var customFunc; eval("customFunc = function(inp1, inp2, inp3, inp4, inp5){" + block.properties.code + "}"); return customFunc(inputs.inp1, inputs.inp2, inputs.inp3, inputs.inp4, inputs.inp5); }, diff --git a/src/blocks/numbersToElements.js b/src/blocks/numbersToElements.js index bd901ae..3be62e7 100644 --- a/src/blocks/numbersToElements.js +++ b/src/blocks/numbersToElements.js @@ -19,7 +19,7 @@ module.exports = { .join(","); }, pageBlock: { - html: "", + html: "