Merge pull request #4095 from dpalou/MOBILE-4470

MOBILE-4470 mod_data: Fix offline images not seen
main
Pau Ferrer Ocaña 2024-06-13 12:28:42 +02:00 committed by GitHub
commit ad566cae6e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -130,7 +130,7 @@ export class AddonModDataFieldPictureComponent extends AddonModDataFieldPluginBa
setTimeout(() => {
if (this.image) {
this.imageUrl = 'name' in this.image
? CoreFile.getFileEntryURL(this.image) // Is Offline.
? CoreFile.convertFileSrc(CoreFile.getFileEntryURL(this.image)) // Is Offline.
: CoreFileHelper.getFileUrl(this.image);
}
}, 1);