Merge pull request #4095 from dpalou/MOBILE-4470
MOBILE-4470 mod_data: Fix offline images not seenmain
commit
ad566cae6e
|
@ -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…
Reference in New Issue