mirror of
https://github.com/zadam/trilium.git
synced 2025-11-03 03:46:37 +01:00
initial decallbackization and promisification of frontend
This commit is contained in:
@@ -61,9 +61,7 @@ $(document).tooltip({
|
||||
const noteId = getNoteIdFromLink($(this).attr("href"));
|
||||
|
||||
if (noteId !== null) {
|
||||
loadNote(noteId, note => {
|
||||
callback(note.detail.note_text);
|
||||
});
|
||||
loadNote(noteId).then(note => callback(note.detail.note_text));
|
||||
}
|
||||
},
|
||||
close: function(event, ui)
|
||||
|
||||
Reference in New Issue
Block a user