better filtering of empty HTML content (just tags and whitespace)

This commit is contained in:
azivner
2018-01-26 19:54:27 -05:00
parent 9f3d46ddb1
commit 0da13994a6
3 changed files with 6 additions and 6 deletions

View File

@@ -210,10 +210,6 @@ async function saveNoteImages(noteId, noteText, sourceId) {
}
async function updateNote(noteId, newNote, dataKey, sourceId) {
if (newNote.detail.note_text === '<p>&nbsp;</p>') {
newNote.detail.note_text = ''
}
if (newNote.detail.is_protected) {
await protected_session.encryptNote(dataKey, newNote.detail);
}