put tabContext into frontend script API

This commit is contained in:
zadam
2019-05-29 21:48:48 +02:00
parent 890c00d4ba
commit 012a18be00
5 changed files with 6 additions and 6 deletions

View File

@@ -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;
};
/**