Closed
Description
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
Labels
No labels