MOBILE-3456 ws: Don't set http plugin header in Android

main
Dani Palou 2020-07-02 07:45:40 +02:00
parent 22266da7a7
commit e72bafe359
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);
} }
}); });