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

@@ -1,12 +1,12 @@
function ApiContext(startNote, allNotes) {
function ScriptContext(startNote, allNotes) {
return {
modules: {},
notes: toObject(allNotes, note => [note.noteId, note]),
apis: toObject(allNotes, note => [note.noteId, Api(startNote, note)]),
apis: toObject(allNotes, note => [note.noteId, ScriptApi(startNote, note)]),
};
}
function Api(startNote, currentNote) {
function ScriptApi(startNote, currentNote) {
const $pluginButtons = $("#plugin-buttons");
async function activateNote(notePath) {