Merge pull request #2432 from dpalou/MOBILE-3456

MOBILE-3456 ws: Don't set http plugin header in Android
main
Juan Leyva 2020-07-02 11:22:33 +02:00 committed by GitHub
commit ca4dc7221d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -162,7 +162,7 @@ export class CoreWSProvider {
this.logger = logger.getInstance('CoreWSProvider'); this.logger = logger.getInstance('CoreWSProvider');
platform.ready().then(() => { platform.ready().then(() => {
if (this.appProvider.isMobile()) { if (this.appProvider.isIOS()) {
(<any> cordova).plugin.http.setHeader('User-Agent', navigator.userAgent); (<any> cordova).plugin.http.setHeader('User-Agent', navigator.userAgent);
} }
}); });