Merge pull request #2399 from NoelDeMartin/MOBILE-3401

Mobile 3401
main
Juan Leyva 2020-06-11 13:24:00 +02:00 committed by GitHub
commit 8f85933df2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -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.
*/

View File

@ -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);
}
}
/**