mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
Removing the userAgent setting from the platform module
This commit is contained in:
@@ -18,7 +18,6 @@ export class device implements definition.device {
|
||||
private static _sdkVersion: string;
|
||||
private static _deviceType: string;
|
||||
private static _uuid: string;
|
||||
private static _userAgent: string;
|
||||
private static _language: string;
|
||||
|
||||
static get os(): string {
|
||||
@@ -84,15 +83,6 @@ export class device implements definition.device {
|
||||
return device._uuid;
|
||||
}
|
||||
|
||||
static get userAgent(): string {
|
||||
if (!device._userAgent) {
|
||||
var context = application.android.context;
|
||||
device._userAgent = new android.webkit.WebView(context).getSettings().getUserAgentString();
|
||||
}
|
||||
|
||||
return device._userAgent;
|
||||
}
|
||||
|
||||
static get language(): string {
|
||||
if (!device._language) {
|
||||
var context = application.android.context;
|
||||
|
||||
Reference in New Issue
Block a user