getting rid of note complement WIP

This commit is contained in:
zadam
2023-05-05 16:37:39 +02:00
parent 9cdcbb3125
commit 5e1f81e53e
23 changed files with 163 additions and 90 deletions

View File

@@ -107,7 +107,7 @@ class SNote extends AbstractShacaEntity {
let content = row.content;
if (this.isStringNote()) {
if (this.hasStringContent()) {
return content === null
? ""
: content.toString("UTF-8");
@@ -118,7 +118,7 @@ class SNote extends AbstractShacaEntity {
}
/** @returns {boolean} true if the note has string content (not binary) */
isStringNote() {
hasStringContent() {
return utils.isStringNote(this.type, this.mime);
}