1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-13 01:36:22 +00:00

Debounce deletion of un-referenced attachments --> don't fixes but mitigates the problems of #3103

This commit is contained in:
ehhc
2019-07-05 15:51:37 +02:00
committed by Junyoung Choi
parent d37210a0d0
commit 55a7ee1f91
2 changed files with 3 additions and 8 deletions

View File

@@ -584,6 +584,7 @@ function deleteAttachmentFolder (storageKey, noteKey) {
* @param noteKey NoteKey of the current note. Is used to determine the belonging attachment folder.
*/
function deleteAttachmentsNotPresentInNote (markdownContent, storageKey, noteKey) {
console.log('deleteAtt')
if (storageKey == null || noteKey == null || markdownContent == null) {
return
}
@@ -617,8 +618,6 @@ function deleteAttachmentsNotPresentInNote (markdownContent, storageKey, noteKey
}
})
})
} else {
console.info('Attachment folder ("' + attachmentFolder + '") did not exist..')
}
}