mirror of
https://github.com/faisalman/ua-parser-js.git
synced 2025-11-17 07:31:51 +03:00
Add Nexus 5 to device list
User agent string taken from Chrome (Beta) Desktop's user-agent override in its developer tools. Added to test plan.
This commit is contained in:
@@ -207,7 +207,7 @@
|
||||
/(opera\s[mobiletab]+).+version\/((\d+)?[\w\.-]+)/i, // Opera Mobi/Tablet
|
||||
/(opera).+version\/((\d+)?[\w\.]+)/i, // Opera > 9.80
|
||||
/(opera)[\/\s]+((\d+)?[\w\.]+)/i // Opera < 9.80
|
||||
|
||||
|
||||
], [NAME, VERSION, MAJOR], [
|
||||
|
||||
/\s(opr)\/((\d+)?[\w\.]+)/i // Opera Webkit
|
||||
@@ -374,6 +374,7 @@
|
||||
/android\s3\.[\s\w-;]{10}(lg?)-([06cv9]{3,4})/i // LG
|
||||
], [[VENDOR, 'LG'], MODEL, [TYPE, TABLET]], [
|
||||
/((nexus\s4))/i,
|
||||
/((nexus\s5))/i,
|
||||
/(lg)[e;\s-\/]+(\w+)*/i
|
||||
], [[VENDOR, 'LG'], MODEL, [TYPE, MOBILE]], [
|
||||
|
||||
@@ -508,7 +509,7 @@
|
||||
//////////
|
||||
|
||||
|
||||
// check js environment
|
||||
// check js environment
|
||||
if (typeof(exports) !== UNDEF_TYPE) {
|
||||
// nodejs env
|
||||
if (typeof(module) !== UNDEF_TYPE && module.exports) {
|
||||
@@ -517,7 +518,7 @@
|
||||
exports.UAParser = UAParser;
|
||||
} else {
|
||||
// browser env
|
||||
window.UAParser = UAParser;
|
||||
window.UAParser = UAParser;
|
||||
// requirejs env (optional)
|
||||
if (typeof(define) === FUNC_TYPE && define.amd) {
|
||||
define(function () {
|
||||
|
||||
2
src/ua-parser.min.js
vendored
2
src/ua-parser.min.js
vendored
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user