mirror of
https://github.com/zadam/trilium.git
synced 2025-10-30 18:05:55 +01:00
renamed currentNote to activeNote to be consistent with frontend API
This commit is contained in:
@@ -9,10 +9,10 @@ const $refreshButton = $('#note-detail-search-refresh-results-button');
|
||||
function show() {
|
||||
$component.show();
|
||||
|
||||
console.log(noteDetailService.getCurrentNote());
|
||||
console.log(noteDetailService.getActiveNote());
|
||||
|
||||
try {
|
||||
const json = JSON.parse(noteDetailService.getCurrentNote().noteContent.content);
|
||||
const json = JSON.parse(noteDetailService.getActiveNote().noteContent.content);
|
||||
|
||||
$searchString.val(json.searchString);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user