mirror of
https://github.com/zadam/trilium.git
synced 2025-06-06 18:08:33 +02:00
clipper fix, closes #1840
This commit is contained in:
parent
44af431a93
commit
a53a65be1f
10440
package-lock.json
generated
10440
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -107,7 +107,11 @@ function processContent(images, note, content) {
|
|||||||
const filename = path.basename(src);
|
const filename = path.basename(src);
|
||||||
|
|
||||||
if (!dataUrl || !dataUrl.startsWith("data:image")) {
|
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;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -7,6 +7,9 @@
|
|||||||
<sourceFolder url="file://$MODULE_DIR$/src/public" isTestSource="false" />
|
<sourceFolder url="file://$MODULE_DIR$/src/public" isTestSource="false" />
|
||||||
<excludeFolder url="file://$MODULE_DIR$/dist" />
|
<excludeFolder url="file://$MODULE_DIR$/dist" />
|
||||||
<excludeFolder url="file://$MODULE_DIR$/src/public/app-dist" />
|
<excludeFolder url="file://$MODULE_DIR$/src/public/app-dist" />
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/libraries" />
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/docs" />
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/bin/better-sqlite3" />
|
||||||
</content>
|
</content>
|
||||||
<orderEntry type="inheritedJdk" />
|
<orderEntry type="inheritedJdk" />
|
||||||
<orderEntry type="sourceFolder" forTests="false" />
|
<orderEntry type="sourceFolder" forTests="false" />
|
||||||
|
Loading…
x
Reference in New Issue
Block a user