MOBILE-4470 mod_data: Fix offline images not seen
This commit is contained in:
parent
add746fb76
commit
4f466944dd
@ -130,7 +130,7 @@ export class AddonModDataFieldPictureComponent extends AddonModDataFieldPluginBa
|
|||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
if (this.image) {
|
if (this.image) {
|
||||||
this.imageUrl = 'name' in 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);
|
: CoreFileHelper.getFileUrl(this.image);
|
||||||
}
|
}
|
||||||
}, 1);
|
}, 1);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user