MOBILE-3320 h5p: Don't download H5P if offline disabled in site

main
Dani Palou 2021-06-23 08:10:15 +02:00
parent 9dde9de784
commit 6d9b171e08
1 changed files with 1 additions and 1 deletions

View File

@ -196,7 +196,7 @@ export class CoreH5PProvider {
isOfflineDisabledInSite(site?: CoreSite): boolean {
site = site || CoreSites.getCurrentSite();
return !!(site?.isFeatureDisabled('NoDelegate_H5POffline'));
return !!(site?.isOfflineDisabled() || site?.isFeatureDisabled('NoDelegate_H5POffline'));
}
/**