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:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user