1
0
mirror of https://github.com/lancedikson/bowser synced 2026-03-02 03:40:27 +00:00

feat: add Nokia Vendor (#448)

This commit is contained in:
daniol
2023-11-17 19:54:44 +01:00
committed by GitHub
parent 0c7380dbf9
commit 4481f5aab3
2 changed files with 48 additions and 0 deletions

View File

@@ -130,6 +130,22 @@ export default [
},
},
/* Nokia */
{
test: [/Nokia/i],
describe(ua) {
const model = Utils.getFirstMatch(/Nokia\s+([0-9]+(\.[0-9]+)?)/i, ua);
const platform = {
type: PLATFORMS_MAP.mobile,
vendor: 'Nokia',
};
if (model) {
platform.model = model;
}
return platform;
},
},
/* Mobile */
{
test: [/[^-]mobi/i],