Merge pull request #3788 from crazyserver/MOBILE-4407
MOBILE4407 url: Fix url icon without main filemain
commit
202de46616
|
@ -150,11 +150,7 @@ export class AddonModUrlModuleHandlerService extends CoreModuleHandlerBase imple
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!mainFile) {
|
const icon = mainFile? AddonModUrl.guessIcon(mainFile.fileurl) : undefined;
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
const icon = AddonModUrl.guessIcon(mainFile.fileurl);
|
|
||||||
|
|
||||||
// Calculate the icon to use.
|
// Calculate the icon to use.
|
||||||
return CoreCourse.getModuleIconSrc(module.modname, module.modicon, icon);
|
return CoreCourse.getModuleIconSrc(module.modname, module.modicon, icon);
|
||||||
|
|
Loading…
Reference in New Issue