mirror of
https://github.com/zadam/trilium.git
synced 2025-11-03 11:56:01 +01:00
moved all global variables into glob object
This commit is contained in:
@@ -4,9 +4,9 @@ async function checkStatus() {
|
||||
type: 'POST',
|
||||
contentType: "application/json",
|
||||
data: JSON.stringify({
|
||||
treeLoadTime: globalTreeLoadTime,
|
||||
currentNoteId: globalCurrentNote ? globalCurrentNote.detail.note_id : null,
|
||||
currentNoteDateModified: globalCurrentNoteLoadTime
|
||||
treeLoadTime: glob.treeLoadTime,
|
||||
currentNoteId: glob.currentNote ? glob.currentNote.detail.note_id : null,
|
||||
currentNoteDateModified: glob.currentNoteLoadTime
|
||||
}),
|
||||
statusCode: {
|
||||
401: () => {
|
||||
@@ -27,7 +27,7 @@ async function checkStatus() {
|
||||
console.log("Reloading tree because of background changes");
|
||||
|
||||
// this will also reload the note content
|
||||
await globalTree.fancytree('getTree').reload(treeResp.notes);
|
||||
await glob.tree.fancytree('getTree').reload(treeResp.notes);
|
||||
|
||||
decryptTreeItems();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user