mirror of
https://github.com/zadam/trilium.git
synced 2025-11-09 14:55:50 +01:00
opened file change detection now useable on all note types
This commit is contained in:
@@ -11,6 +11,10 @@ function fileModificationUploaded(noteId) {
|
||||
delete fileModificationStatus[noteId];
|
||||
}
|
||||
|
||||
function ignoreModification(noteId) {
|
||||
delete fileModificationStatus[noteId];
|
||||
}
|
||||
|
||||
ws.subscribeToMessages(async message => {
|
||||
if (message.type !== 'openedFileUpdated') {
|
||||
return;
|
||||
@@ -27,5 +31,6 @@ ws.subscribeToMessages(async message => {
|
||||
|
||||
export default {
|
||||
getFileModificationStatus,
|
||||
fileModificationUploaded
|
||||
fileModificationUploaded,
|
||||
ignoreModification
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user