1
0
mirror of https://github.com/lancedikson/bowser synced 2026-03-02 03:40:27 +00:00

fix #107 - uc browser is not detect using this library

This commit is contained in:
Jose Tavares
2015-10-18 20:06:08 +01:00
parent 5f933390f6
commit 1fa7c01a85
3 changed files with 30 additions and 1 deletions

View File

@@ -45,6 +45,13 @@
, version: versionIdentifier || getFirstMatch(/(?:yabrowser)[\s\/](\d+(\.\d+)?)/i)
}
}
else if (/ucbrowser/i.test(ua)) {
result = {
name: 'UC Browser'
, ucbrowser: t
, version: getFirstMatch(/(?:ucbrowser)[\s\/](\d+(?:\.\d+)+)/i)
}
}
else if (/windows phone/i.test(ua)) {
result = {
name: 'Windows Phone'