fixed render notes

This commit is contained in:
azivner
2018-03-07 00:17:18 -05:00
parent 766a567a32
commit 8e95b080da
7 changed files with 20 additions and 30 deletions

View File

@@ -116,9 +116,7 @@ async function stopWatch(what, func) {
}
async function executeBundle(bundle) {
const apiContext = ApiContext(bundle.note, bundle.allNotes);
console.log((`const apiContext = this; (async function() { ${bundle.script}\r\n})()`));
const apiContext = ScriptContext(bundle.note, bundle.allNotes);
return await (function() { return eval(`const apiContext = this; (async function() { ${bundle.script}\r\n})()`); }.call(apiContext));
}