mirror of
https://github.com/lancedikson/bowser
synced 2026-09-27 06:15:35 +00:00
Support Android version names, Recognise Huawei devices
This commit is contained in:
@@ -12,6 +12,22 @@ const TYPES_LABELS = {
|
||||
*/
|
||||
|
||||
export default [
|
||||
/* Huawei */
|
||||
{
|
||||
test: [/huawei/i],
|
||||
describe(ua) {
|
||||
const model = getFirstMatch(/(can\-l01)/i, ua) && "Nova";
|
||||
const platform = {
|
||||
type: TYPES_LABELS.mobile,
|
||||
vendor: 'Huawei'
|
||||
};
|
||||
if (model) {
|
||||
platform.model = model;
|
||||
}
|
||||
return platform;
|
||||
},
|
||||
},
|
||||
|
||||
/* Nexus Tablet */
|
||||
{
|
||||
test: [/nexus\s*(?:7|8|9|10).*/i],
|
||||
|
||||
Reference in New Issue
Block a user