1
0
mirror of https://github.com/lancedikson/bowser synced 2024-10-27 20:34:22 +00:00

Fix detection of Nexus devices

fixes #233
This commit is contained in:
Denis Demchenko 2018-07-17 21:21:56 +03:00
parent 8e900bc0a9
commit 8d7ef744ac
2 changed files with 18 additions and 4 deletions

View File

@ -14,7 +14,7 @@ const TYPES_LABELS = {
export default [
/* Nexus Tablet */
{
test: [/nexus\s*[0-9]+/i],
test: [/nexus\s*(?:7|8|9|10).*/i],
describe() {
return {
type: TYPES_LABELS.tablet,
@ -87,7 +87,7 @@ export default [
/* Nexus Mobile */
{
test: [/nexus\s*[0-6]\s*/i, /galaxy nexus/i],
test: [/nexus\s*[0-6].*/i, /galaxy nexus/i],
describe() {
return {
type: TYPES_LABELS.mobile,

View File

@ -254,7 +254,21 @@
type: "tablet"
engine:
name: "Blink"
Amazon Silk:
-
ua: "Mozilla/5.0 (Linux; Android 7.0; Nexus 6P Build/NRD90T) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.111 Mobile Safari/537.36"
spec:
browser:
name: "Chrome"
version: "63.0.3239.111"
os:
name: "Android"
version: "7.0"
platform:
type: "mobile"
vendor: "Nexus"
engine:
name: "Blink"
Amazon Silk:
-
ua: "Mozilla/5.0 (Linux; U; Android 4.0.3; en-us; KFTT Build/IML74K) AppleWebKit/535.19 (KHTML, like Gecko) Silk/3.4 Mobile Safari/535.19 Silk-Accelerated=true"
spec:
@ -607,7 +621,7 @@
name: "Android"
version: "5.1.1"
platform:
type: "tablet"
type: "mobile"
vendor: "Nexus"
engine:
name: "Blink"