Removing the userAgent setting from the platform module

This commit is contained in:
Darin Dimitrov
2015-04-22 18:31:38 +03:00
parent a80a073e17
commit 050ab3e4c7
3 changed files with 0 additions and 25 deletions

View File

@@ -14,7 +14,6 @@ export class device implements definition.device {
private static _osVersion: string;
private static _sdkVersion: string;
private static _deviceType: string;
private static _userAgent: string;
private static _language: string;
static get manufacturer(): string {
@@ -77,14 +76,6 @@ export class device implements definition.device {
return app_uuid;
}
static get userAgent(): string {
if (!device._userAgent) {
device._userAgent = new UIWebView().stringByEvaluatingJavaScriptFromString('navigator.userAgent');
}
return device._userAgent;
}
static get language(): string {
if (!device._language) {
var languages = NSLocale.preferredLanguages();