1
0
mirror of https://github.com/lancedikson/bowser synced 2026-03-02 03:40:27 +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,