Fix chrome mobile regressions, drop windows phone, opera mobile, and IE Mobile customizations

This commit is contained in:
Krishna Rajendran 2020-05-03 22:33:23 -07:00
parent 2c06ca22fa
commit 1ff4d63806
5 changed files with 8 additions and 14 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1,7 +1,7 @@
{
"title": "UAParser.js",
"name": "@amplitude/ua-parser-js",
"version": "0.7.21",
"version": "0.7.23",
"author": "Faisal Salman <f@faisalman.com> (http://faisalman.com)",
"description": "Lightweight JavaScript-based user-agent string parser",
"keywords": [

View File

@ -171,10 +171,6 @@
'2.0.4' : '/419',
'?' : '/'
}
},
name : {
'Opera Mobile' : 'Opera Mobi',
'IE Mobile' : 'IEMobile'
}
},
@ -209,9 +205,6 @@
'8.1' : 'NT 6.3',
'10' : ['NT 6.4', 'NT 10.0'],
'RT' : 'ARM'
},
name : {
'Windows Phone' : 'Windows Phone OS'
}
}
}
@ -338,6 +331,10 @@
/((?:oculus|samsung)browser)\/([\w\.]+)/i
], [[NAME, /(.+(?:g|us))(.+)/, '$1 $2'], VERSION], [ // Oculus / Samsung Browser
/((?:android.+)crmo|crios)\/([\w\.]+)/i, // Chrome for Android/iOS
/android.+(chrome)\/([\w\.]+)\s+(?:mobile\s?safari)/i
], [[NAME, 'Chrome Mobile'], VERSION], [
/android.+version\/([\w\.]+)\s+(?:mobile\s?safari|safari)*/i // Android Browser
], [VERSION, [NAME, 'Android Browser']], [
@ -354,9 +351,6 @@
/(qihu|qhbrowser|qihoobrowser|360browser)/i // 360
], [[NAME, '360 Browser']], [
/((?:android.+)crmo|crios)\/([\w\.]+)/i // Chrome for Android/iOS
], [[NAME, 'Chrome Mobile'], VERSION], [
/(coast)\/([\w\.]+)/i // Opera Coast
], [[NAME, 'Opera Coast'], VERSION], [

View File

@ -121,7 +121,7 @@
"ua" : "Mozilla/4.0 (compatible; MSIE 7.0; Windows Phone OS 7.0; Trident/3.1; IEMobile/7.0; DELL; Venue Pro)",
"expect" :
{
"name" : "Windows Phone",
"name" : "Windows Phone OS",
"version" : "7.0"
}
},