mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 02:16:05 +01:00 
			
		
		
		
	renamed currentNote to activeNote to be consistent with frontend API
This commit is contained in:
		| @@ -202,13 +202,13 @@ function FrontendScriptApi(startNote, currentNote, originEntity = null) { | ||||
|      * @method | ||||
|      * @returns {string} content of active note (loaded into right pane) | ||||
|      */ | ||||
|     this.getActiveNoteContent = noteDetailService.getCurrentNoteContent; | ||||
|     this.getActiveNoteContent = noteDetailService.getActiveNoteContent; | ||||
|  | ||||
|     /** | ||||
|      * @method | ||||
|      * @returns {NoteFull} active note (loaded into right pane) | ||||
|      */ | ||||
|     this.getActiveNote = noteDetailService.getCurrentNote; | ||||
|     this.getActiveNote = noteDetailService.getActiveNote; | ||||
|  | ||||
|     /** | ||||
|      * This method checks whether user navigated away from the note from which the scripts has been started. | ||||
| @@ -220,7 +220,7 @@ function FrontendScriptApi(startNote, currentNote, originEntity = null) { | ||||
|      * @return {boolean} returns true if the original note is still loaded, false if user switched to another | ||||
|      */ | ||||
|     this.isNoteStillActive = () => { | ||||
|         return this.originEntity.noteId === noteDetailService.getCurrentNoteId(); | ||||
|         return this.originEntity.noteId === noteDetailService.getActiveNoteId(); | ||||
|     }; | ||||
|  | ||||
|     /** | ||||
|   | ||||
		Reference in New Issue
	
	Block a user