mirror of
https://github.com/faisalman/ua-parser-js.git
synced 2025-09-27 16:08:47 +03:00
parent
9c5d6ee70e
commit
54c633aac5
@ -1083,6 +1083,11 @@
|
|||||||
if (uaCH[MODEL]) {
|
if (uaCH[MODEL]) {
|
||||||
this.set(MODEL, uaCH[MODEL]);
|
this.set(MODEL, uaCH[MODEL]);
|
||||||
}
|
}
|
||||||
|
// Xbox-Specific Detection
|
||||||
|
if (uaCH[MODEL] == 'Xbox') {
|
||||||
|
this.set(TYPE, CONSOLE);
|
||||||
|
this.set(VENDOR, MICROSOFT);
|
||||||
|
}
|
||||||
if (uaCH[FORMFACTOR]) {
|
if (uaCH[FORMFACTOR]) {
|
||||||
var ff;
|
var ff;
|
||||||
if (typeof uaCH[FORMFACTOR] !== 'string') {
|
if (typeof uaCH[FORMFACTOR] !== 'string') {
|
||||||
@ -1104,6 +1109,11 @@
|
|||||||
this.set(NAME, osName)
|
this.set(NAME, osName)
|
||||||
.set(VERSION, osVersion);
|
.set(VERSION, osVersion);
|
||||||
}
|
}
|
||||||
|
// Xbox-Specific Detection
|
||||||
|
if (this.get(NAME) == WINDOWS && uaCH[MODEL] == 'Xbox') {
|
||||||
|
this.set(NAME, 'Xbox')
|
||||||
|
this.set(VERSION, undefined)
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
case UA_RESULT:
|
case UA_RESULT:
|
||||||
var data = this.data;
|
var data = this.data;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user