Merge pull request #3770 from dpalou/MOBILE-4367
MOBILE-4367 courses: Check if core_my_view_page is availablemain
commit
2f7136f574
|
@ -1287,6 +1287,10 @@ export class CoreCoursesProvider {
|
||||||
*/
|
*/
|
||||||
async logView(page: 'my' | 'dashboard'): Promise<void> {
|
async logView(page: 'my' | 'dashboard'): Promise<void> {
|
||||||
const site = CoreSites.getRequiredCurrentSite();
|
const site = CoreSites.getRequiredCurrentSite();
|
||||||
|
if (!site.wsAvailable('core_my_view_page')) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
const params: CoreMyViewPageWSParams = { page };
|
const params: CoreMyViewPageWSParams = { page };
|
||||||
|
|
||||||
await site.write('core_my_view_page', params);
|
await site.write('core_my_view_page', params);
|
||||||
|
|
Loading…
Reference in New Issue