Skip to content

Commit f543c5a

Browse files
author
Dustin
committed
facebook movile app with no browser info
1 parent 314131d commit f543c5a

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

src/ua-parser.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -689,7 +689,10 @@
689689
], [[TYPE, SMARTTV]], [
690690

691691
/(android[\w\.\s\-]{0,9});.+build/i // Generic Android Device
692-
], [MODEL, [VENDOR, 'Generic']]
692+
], [MODEL, [VENDOR, 'Generic']], [
693+
694+
/(phone)/i,
695+
], [[TYPE, MOBILE]]
693696
],
694697

695698
engine : [[

test/device-test.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1326,5 +1326,12 @@
13261326
"model": "LYA-TL00",
13271327
"type": "mobile"
13281328
}
1329+
},
1330+
{
1331+
"desc": "FaceBook Mobile App",
1332+
"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]",
1333+
"expect": {
1334+
"type": "mobile"
1335+
}
13291336
}
13301337
]

0 commit comments

Comments
 (0)