mirror of
https://github.com/lancedikson/bowser
synced 2024-10-27 20:34:22 +00:00
Merge branch 'fix-nexus-mobile-tablet'
This commit is contained in:
commit
52bffcc940
@ -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