mirror of
https://github.com/zadam/trilium.git
synced 2025-10-29 09:16:45 +01:00
simplification of triggering events from links
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user