MOBILE-4470 mod_data: Fix offline images not seen

main
Dani Palou 2024-06-13 12:08:01 +02:00
parent add746fb76
commit 4f466944dd
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);