mirror of
https://github.com/lancedikson/bowser
synced 2024-10-27 20:34:22 +00:00
fix eventual nexus 0 to 3 being mobile
This commit is contained in:
parent
6f151970bf
commit
ad0e2ee636
@ -24,7 +24,7 @@
|
|||||||
var iosdevice = getFirstMatch(/(ipod|iphone|ipad)/i).toLowerCase()
|
var iosdevice = getFirstMatch(/(ipod|iphone|ipad)/i).toLowerCase()
|
||||||
, likeAndroid = /like android/i.test(ua)
|
, likeAndroid = /like android/i.test(ua)
|
||||||
, android = !likeAndroid && /android/i.test(ua)
|
, android = !likeAndroid && /android/i.test(ua)
|
||||||
, nexusMobile = /nexus\s*[4-6]\s*/i.test(ua)
|
, nexusMobile = /nexus\s*[0-6]\s*/i.test(ua)
|
||||||
, nexusTablet = !nexusMobile && /nexus\s*[0-9]+/i.test(ua)
|
, nexusTablet = !nexusMobile && /nexus\s*[0-9]+/i.test(ua)
|
||||||
, chromeos = /CrOS/.test(ua)
|
, chromeos = /CrOS/.test(ua)
|
||||||
, silk = /silk/i.test(ua)
|
, silk = /silk/i.test(ua)
|
||||||
|
Loading…
Reference in New Issue
Block a user