diff --git a/src/core/course/providers/course.ts b/src/core/course/providers/course.ts index 44043e844..98c551149 100644 --- a/src/core/course/providers/course.ts +++ b/src/core/course/providers/course.ts @@ -31,8 +31,6 @@ import { CorePushNotificationsProvider } from '@core/pushnotifications/providers import { CoreCoursesProvider } from '@core/courses/providers/courses'; import { makeSingleton } from '@singletons/core.singletons'; -import { makeSingleton } from '@singletons/core.singletons'; - /** * Service that provides some features regarding a course. */ @@ -1164,8 +1162,6 @@ export class CoreCourseProvider { } } -export class CoreCourse extends makeSingleton(CoreCourseProvider) {} - /** * Data returned by course_summary_exporter. */ diff --git a/src/providers/ws.ts b/src/providers/ws.ts index 996d3e61f..4e37fdd89 100644 --- a/src/providers/ws.ts +++ b/src/providers/ws.ts @@ -158,6 +158,10 @@ export class CoreWSProvider { protected mimeUtils: CoreMimetypeUtilsProvider, logger: CoreLoggerProvider) { this.logger = logger.getInstance('CoreWSProvider'); + + if (this.appProvider.isMobile()) { + ( cordova).plugin.http.setHeader('User-Agent', navigator.userAgent); + } } /**