mirror of
https://github.com/zadam/trilium.git
synced 2024-11-10 17:13:45 +08:00
clipper fix, closes #1840
This commit is contained in:
parent
44af431a93
commit
a53a65be1f
3 changed files with 30 additions and 10421 deletions
10442
package-lock.json
generated
10442
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);
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
|
|
|
@ -7,6 +7,9 @@
|
|||
<sourceFolder url="file://$MODULE_DIR$/src/public" isTestSource="false" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/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>
|
||||
<orderEntry type="inheritedJdk" />
|
||||
<orderEntry type="sourceFolder" forTests="false" />
|
||||
|
|
Loading…
Reference in a new issue