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

marginally improved regex to detect firefoxos

This commit is contained in:
BendingBender
2014-02-22 00:48:51 +01:00
parent b62ae3e233
commit ffd340c62b
3 changed files with 3 additions and 3 deletions

View File

@@ -153,7 +153,7 @@
if (android) {
o.android = t
o.mobile = t
} else if (!android && firefox && /\((mobile|tablet);.*rv:[\d\.]+\)/i.test(ua)) {
} else if (!android && firefox && /\((mobile|tablet);[^\)]*rv:[\d\.]+\)/i.test(ua)) {
o.firefoxos = t
o.mobile = t
}