Add kindle fire device detection

This commit is contained in:
Ross Noble
2014-05-06 10:39:09 -04:00
parent 7234216e02
commit 1261dca937
3 changed files with 16 additions and 2 deletions

View File

@@ -313,9 +313,13 @@
/(kindle)\/([\w\.]+)/i, // Kindle
/\s(nook)[\w\s]+build\/(\w+)/i, // Nook
/(dell)\s(strea[kpr\s\d]*[\dko])/i // Dell Streak
], [VENDOR, MODEL, [TYPE, TABLET]], [
/\((ip[honed|\s\w*]+);.+(apple)/i // iPod/iPhone
/(kf[A-z]+)\sbuild\/[\w\.]+.*silk\//i, // Kindle Fire HD
], [MODEL, [VENDOR, 'Amazon'], [TYPE, TABLET]], [
/\((ip[honed|\s\w*]+);.+(apple)/i // iPod/iPhone
], [MODEL, VENDOR, [TYPE, MOBILE]], [
/(blackberry)[\s-]?(\w+)/i, // BlackBerry

File diff suppressed because one or more lines are too long