1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-06-12 22:57:38 +02:00

iOS: Fixed attaching images

This commit is contained in:
Laurent Cozic
2017-11-19 22:08:58 +00:00
parent cbd2075156
commit e80dd59da2
17 changed files with 902 additions and 608 deletions

View File

@ -83,7 +83,12 @@ class MdToHtml {
return;
}
resource.base64 = await shim.readLocalFileBase64(Resource.fullPath(resource));
try {
resource.base64 = await shim.readLocalFileBase64(Resource.fullPath(resource));
} catch (error) {
console.warn('Could not load resource file: ' + id, Resource.fullPath(resource), error);
return;
}
let newResources = Object.assign({}, this.loadedResources_);
newResources[id] = resource;