faisalman / ua-parser-js

"Unmask Your Traffic" - UAParser.js: The Essential Web Development Tool for User-Agent Detection
https://uaparser.dev/
GNU Affero General Public License v3.0
9.28k stars 1.2k forks source link

Asus device undefined #622

Closed laclance closed 1 year ago

laclance commented 1 year ago

Device model: VivoBook_ASUSLaptop X515FAC_X515FA

const parser = new UAParser(navigator.userAgent);
console.log(parser.getResult())

prints:

browser: {name: 'Chrome', version: '108.0.0.0', major: '108'}
cpu: {architecture: 'amd64'}
device: {vendor: undefined, model: undefined, type: undefined}
engine: {name: 'Blink', version: '108.0.0.0'}
os: {name: 'Windows', version: '10'}
ua: "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36"
Ahman9950 commented 1 year ago

Device model: VivoBook_ASUSLaptop X515FAC_X515FA

const parser = new UAParser(navigator.userAgent);
console.log(parser.getResult())

prints:

browser: {name: 'Chrome', version: '108.0.0.0', major: '108'}
cpu: {architecture: 'amd64'}
device: {vendor: undefined, model: undefined, type: undefined}
engine: {name: 'Blink', version: '108.0.0.0'}
os: {name: 'Windows', version: '10'}
ua: "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36"
faisalman commented 1 year ago

I think this is the intended result since none about the device is actually provided within user-agent string