Allow marking code (JavaScript) notes for execution after application loads, closes #19

This commit is contained in:
azivner
2018-01-25 23:49:03 -05:00
parent a42fd9b090
commit 9f3d46ddb1
6 changed files with 47 additions and 8 deletions

View File

@@ -113,4 +113,8 @@ async function stopWatch(what, func) {
console.log(`${what} took ${tookMs}ms`);
return ret;
}
function executeScript(script) {
eval("(async function() {" + script + "})()");
}