simplification of triggering events from links

This commit is contained in:
zadam
2020-01-21 22:08:41 +01:00
parent 55d1f9e9f0
commit af5c623671
8 changed files with 45 additions and 51 deletions

View File

@@ -50,7 +50,7 @@ function FrontendScriptApi(startNote, currentNote, originEntity = null, tabConte
*/
this.activateNote = async (notePath, noteLoadedListener) => {
await treeService.activateNote(notePath, async () => {
await appContext.getMainNoteTree().scrollToActiveNote();
await appContext.getMainNoteTree().scrollToActiveNoteListener();
if (noteLoadedListener) {
noteLoadedListener();