mirror of
https://github.com/zadam/trilium.git
synced 2025-10-29 17:26:38 +01:00
sync changes for note_tree_id and fixed recent notes
This commit is contained in:
@@ -18,8 +18,11 @@ const recentNotes = (function() {
|
||||
|
||||
function addRecentNote(noteTreeId) {
|
||||
setTimeout(() => {
|
||||
console.log("note tree: " + noteTreeId);
|
||||
console.log("current note tree: " + noteTree.getCurrentNoteTreeId());
|
||||
|
||||
// we include the note into recent list only if the user stayed on the note at least 5 seconds
|
||||
if (noteTreeId === noteEditor.getCurrentNoteId()) {
|
||||
if (noteTreeId === noteTree.getCurrentNoteTreeId()) {
|
||||
$.ajax({
|
||||
url: baseApiUrl + 'recent-notes/' + noteTreeId,
|
||||
type: 'PUT',
|
||||
|
||||
Reference in New Issue
Block a user