mirror of
https://github.com/faisalman/ua-parser-js.git
synced 2025-11-15 22:52:16 +03:00
Check for Presto before Webkit
This commit is contained in:
@@ -108,7 +108,8 @@ function uaparser(uastring){
|
||||
|
||||
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
|
||||
], ['name', 'version'], [
|
||||
|
||||
|
||||
Reference in New Issue
Block a user