ua-parser-js icon indicating copy to clipboard operation
ua-parser-js copied to clipboard

Device Type is undefined on Mac Desktop

Open tgowing opened this issue 1 year ago • 5 comments

Describe the bug I am using a Mac computer and the device type is undefined. This is the object that ua-parser is producing.

{
    "ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/113.0.0.0 Safari/537.36",
    "browser": {
        "name": "Chrome",
        "version": "113.0.0.0",
        "major": "113"
    },
    "engine": {
        "name": "Blink",
        "version": "113.0.0.0"
    },
    "os": {
        "name": "Mac OS",
        "version": "10.15.7"
    },
    "device": {
        "vendor": "Apple",
        "model": "Macintosh",
        **"type":  "undefined"**
    },
    "cpu": {}
}

To Reproduce Steps to reproduce the behavior:

var uap = new UAParser();
console.log(uap.getResult());

tgowing avatar May 29 '23 22:05 tgowing