mirror of
https://github.com/zadam/trilium.git
synced 2025-10-29 17:26:38 +01:00
put tabContext into frontend script API
This commit is contained in:
@@ -311,7 +311,7 @@ function FrontendScriptApi(startNote, currentNote, originEntity = null, tabConte
|
||||
* @return {boolean} returns true if the original note is still loaded, false if user switched to another
|
||||
*/
|
||||
this.isNoteStillActive = () => {
|
||||
return this.originEntity.noteId === noteDetailService.getActiveNoteId();
|
||||
return this.originEntity.noteId === tabContext.noteId;
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user