commit
8f85933df2
|
@ -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.
|
||||
*/
|
||||
|
|
|
@ -158,6 +158,10 @@ export class CoreWSProvider {
|
|||
protected mimeUtils: CoreMimetypeUtilsProvider,
|
||||
logger: CoreLoggerProvider) {
|
||||
this.logger = logger.getInstance('CoreWSProvider');
|
||||
|
||||
if (this.appProvider.isMobile()) {
|
||||
(<any> cordova).plugin.http.setHeader('User-Agent', navigator.userAgent);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue