render notes should now return elements to append instead of modifying DOM directly

This commit is contained in:
zadam
2019-05-19 21:52:28 +02:00
parent f59f08fa0e
commit aead6a44de
5 changed files with 14 additions and 10 deletions

View File

@@ -8,8 +8,8 @@ async function getAndExecuteBundle(noteId, originEntity = null) {
await executeBundle(bundle, originEntity);
}
async function executeBundle(bundle, originEntity) {
const apiContext = await ScriptContext(bundle.noteId, bundle.allNoteIds, originEntity);
async function executeBundle(bundle, originEntity, tabContext) {
const apiContext = await ScriptContext(bundle.noteId, bundle.allNoteIds, originEntity, tabContext);
try {
return await (function () {