Skip to content

Commit

Permalink
MOBILE-4407 resources: Show resource mimetype icon
Browse files Browse the repository at this point in the history
  • Loading branch information
crazyserver committed Aug 30, 2023
1 parent 55d126c commit 634447d
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/addons/mod/resource/services/handlers/module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ import { CoreCourseModuleData } from '@features/course/services/course-helper';
import { CoreCourseModuleHandler, CoreCourseModuleHandlerData } from '@features/course/services/module-delegate';
import { CoreCourseModulePrefetchDelegate } from '@features/course/services/module-prefetch-delegate';
import { CoreFileHelper } from '@services/file-helper';
import { CoreSites } from '@services/sites';
import { CoreMimetypeUtils } from '@services/utils/mimetype';
import { CoreTextUtils } from '@services/utils/text';
import { CoreTimeUtils } from '@services/utils/time';
Expand Down Expand Up @@ -229,9 +228,6 @@ export class AddonModResourceModuleHandlerService extends CoreModuleHandlerBase
return;
}

if (CoreSites.getCurrentSite()?.isVersionGreaterEqualThan('4.0')) {
return CoreCourse.getModuleIconSrc(module.modname, module.modicon);
}
let mimetypeIcon = '';

if (module.contentsinfo) {
Expand Down

0 comments on commit 634447d

Please sign in to comment.