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

add support firefox for iOS

This commit is contained in:
Denis Demchenko
2016-05-08 14:24:36 +03:00
parent 197c203e11
commit 62745525df
2 changed files with 13 additions and 3 deletions

View File

@@ -47,7 +47,7 @@
, mobile = !tablet && /[^-]mobi/i.test(ua)
, result
if (/opera|opr/i.test(ua)) {
if (/opera|opr|opios/i.test(ua)) {
result = {
name: 'Opera'
, opera: t
@@ -131,11 +131,11 @@
, version: getFirstMatch(/seamonkey\/(\d+(\.\d+)?)/i)
}
}
else if (/firefox|iceweasel/i.test(ua)) {
else if (/firefox|iceweasel|fxios/i.test(ua)) {
result = {
name: 'Firefox'
, firefox: t
, version: getFirstMatch(/(?:firefox|iceweasel)[ \/](\d+(\.\d+)?)/i)
, version: getFirstMatch(/(?:firefox|iceweasel|fxios)[ \/](\d+(\.\d+)?)/i)
}
if (/\((mobile|tablet);[^\)]*rv:[\d\.]+\)/i.test(ua)) {
result.firefoxos = t