1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-06-15 23:00:36 +02:00

Mobile: Reload note when resource got downloaded. Also fixed Android build script to make it work in macOS.

This commit is contained in:
Laurent Cozic
2018-10-12 23:25:11 +01:00
parent ffd03bf34c
commit 7f51035f91
7 changed files with 57 additions and 6 deletions

View File

@ -89,13 +89,14 @@ class MdToHtml {
if (!resource) {
// Can happen for example if an image is attached to a note, but the resource hasn't
// been downloaded from the sync target yet.
console.warn('Cannot load resource: ' + id);
console.info('Cannot load resource: ' + id);
delete this.loadedResources_[id];
return;
}
if (resource.fetch_status !== Resource.FETCH_STATUS_DONE) {
delete this.loadedResources_[id];
console.warn('Resource not yet fetched: ' + id);
console.info('Resource not yet fetched: ' + id);
return;
}