MOBILE-2907 resource: Fix blank block warning

main
Pau Ferrer Ocaña 2019-04-30 12:15:00 +02:00
parent 5b5dcd8b79
commit 84c2986ec9
1 changed files with 1 additions and 0 deletions

View File

@ -115,6 +115,7 @@ export class AddonModResourceHelperProvider {
isDisplayedEmbedded(module: any, display: number): boolean {
if ((!module.contents.length && !module.contentsinfo) || !this.fileProvider.isAvailable() ||
(!this.sitesProvider.getCurrentSite().isVersionGreaterEqualThan('3.7') && this.isNextcloudFile(module))) {
return false;
}
let ext;