updated demo document with icon classes

This commit is contained in:
zadam
2019-11-16 09:57:19 +01:00
parent e00ab5dbf9
commit c5e040c4a4
3 changed files with 6 additions and 0 deletions

View File

@@ -7,6 +7,10 @@ const dateUtils = require('../services/date_utils');
* @param {Note} note
*/
async function protectNoteRevisions(note) {
if (await note.hasLabel('disableVersioning')) {
return;
}
for (const revision of await note.getRevisions()) {
if (note.isProtected !== revision.isProtected) {
const content = await revision.getContent();