mirror of
https://github.com/lancedikson/bowser
synced 2024-10-27 20:34:22 +00:00
add nexus mobile to detection
This commit is contained in:
parent
71b69e822d
commit
5b67843977
@ -274,7 +274,7 @@
|
|||||||
var osMajorVersion = osVersion.split('.')[0];
|
var osMajorVersion = osVersion.split('.')[0];
|
||||||
if (tablet || nexusTablet || iosdevice == 'ipad' || (android && (osMajorVersion == 3 || (osMajorVersion == 4 && !mobile))) || result.silk) {
|
if (tablet || nexusTablet || iosdevice == 'ipad' || (android && (osMajorVersion == 3 || (osMajorVersion == 4 && !mobile))) || result.silk) {
|
||||||
result.tablet = t
|
result.tablet = t
|
||||||
} else if (mobile || iosdevice == 'iphone' || iosdevice == 'ipod' || android || result.blackberry || result.webos || result.bada) {
|
} else if (mobile || iosdevice == 'iphone' || iosdevice == 'ipod' || android || nexusMobile || result.blackberry || result.webos || result.bada) {
|
||||||
result.mobile = t
|
result.mobile = t
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user