Skip to content

Commit

Permalink
facebook movile app with no browser info
Browse files Browse the repository at this point in the history
  • Loading branch information
Dustin committed Jan 7, 2021
1 parent 314131d commit f543c5a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/ua-parser.js
Expand Up @@ -689,7 +689,10 @@
], [[TYPE, SMARTTV]], [

/(android[\w\.\s\-]{0,9});.+build/i // Generic Android Device
], [MODEL, [VENDOR, 'Generic']]
], [MODEL, [VENDOR, 'Generic']], [

/(phone)/i,
], [[TYPE, MOBILE]]
],

engine : [[
Expand Down
7 changes: 7 additions & 0 deletions test/device-test.json
Expand Up @@ -1326,5 +1326,12 @@
"model": "LYA-TL00",
"type": "mobile"
}
},
{
"desc": "FaceBook Mobile App",
"ua": "[FBAN/FBIOS;FBAV/283.0.0.44.117;FBBV/238386386;FBDV/iPhone12,1;FBMD/iPhone;FBSN/iOS;FBSV/13.6.1;FBSS/2;FBID/phone;FBLC/en_US;FBOP/5;FBRV/240127608]",
"expect": {
"type": "mobile"
}
}
]

0 comments on commit f543c5a

Please sign in to comment.