Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Fails to define device or architecture w/Safari 14.0.3 #605

Closed
@brucejo75

Description

@brucejo75

Fails to define device or architecture w/Safari 14.0.3

But all the information is in the user-agent. Macintosh, Intel, Mac

I read through #182, isn't this a case of all the info is defined in the user-agent?

Environment

MacBook Pro (13 in mid-2012)
MacOS Mojave 10.14.16
Safari 14.0.3 (14610.4.3.1.7)
[email protected]

Output of UAParser

import { UAParser } from 'ua-parser-js';
const Platform = UAParser();
{
browser: {name: "Safari", version: "14.0.3", major: "14"},
cpu: {architecture: undefined},
device: {vendor: undefined, model: undefined, type: undefined},
engine: {name: "WebKit", version: "605.1.15"},
os: {name: "Mac OS", version: "10.14.6"},
ua: "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.0.3 Safari/605.1.15"
}

Expected

{
browser: {name: "Safari", version: "14.0.3", major: "14"},
cpu: {architecture: "amd64"},
device: {vendor: "Apple", model: "Macintosh", type: undefined},
// I know it is a "Macbook Pro (13in mid-2012)", but "Macintosh" is useful to know
engine: {name: "WebKit", version: "605.1.15"},
os: {name: "Mac OS", version: "10.14.6"},
ua: "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.0.3 Safari/605.1.15"
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions