mirror of
https://github.com/zadam/trilium.git
synced 2025-10-30 18:05:55 +01:00
fixed render notes
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user