Merge pull request #2432 from dpalou/MOBILE-3456
MOBILE-3456 ws: Don't set http plugin header in Androidmain
commit
ca4dc7221d
|
@ -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);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue