mirror of
https://github.com/faisalman/ua-parser-js.git
synced 2025-09-27 07:58:45 +03:00
Check for Presto before Webkit
This commit is contained in:
parent
4ef8a75d7d
commit
43de9b8127
@ -108,7 +108,8 @@ function uaparser(uastring){
|
|||||||
|
|
||||||
return regxMap(this.ua, [
|
return regxMap(this.ua, [
|
||||||
|
|
||||||
/(presto|[aple]*webkit|trident)\/([\w\.]+)/i, // Presto/Webkit/Trident
|
/(presto)\/([\w\.]+)/i, // Presto
|
||||||
|
/([aple]*webkit|trident)\/([\w\.]+)/i, // Webkit/Trident
|
||||||
/(khtml)\/([\w\.]+)/i // KHTML
|
/(khtml)\/([\w\.]+)/i // KHTML
|
||||||
], ['name', 'version'], [
|
], ['name', 'version'], [
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user