clipper fix, closes #1840

This commit is contained in:
zadam
2021-04-12 23:29:02 +02:00
parent 44af431a93
commit a53a65be1f
3 changed files with 30 additions and 10421 deletions

View File

@@ -107,7 +107,11 @@ function processContent(images, note, content) {
const filename = path.basename(src);
if (!dataUrl || !dataUrl.startsWith("data:image")) {
log.info("Image could not be recognized as data URL:", dataUrl.substr(0, Math.min(100, dataUrl.length)));
const excerpt = dataUrl
? dataUrl.substr(0, Math.min(100, dataUrl.length))
: "null";
log.info("Image could not be recognized as data URL: " + excerpt);
continue;
}