Library version
v1.0.37
Describe the bug
iPad Pro and iPad Air user agents from Chrome Dev Tools are not recognized as tablets. Mentioning Chrome Dev Tools here as I can't rule out Chrome using incorrect user agents.
To Reproduce
Steps to reproduce the behavior:
- Open Chrome Dev Tools --> Device Toolbar
- Select iPad Air or iPad Pro from list
- Visit webpage that uses ua-parser-js
device is returned as { vendor: 'Apple', model: 'Macintosh', type: undefined }
Alternatively use one of these user agents which is what my Chrome (Version 119.0.6045.124) is using:
- iPad Air -
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.0 Safari/605.1.15
- iPad Pro -
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.0 Safari/605.1.15
Expected behavior
device returned as { vendor: 'Apple', model: 'iPad', type: 'tablet' }
Library version
v1.0.37
Describe the bug
iPad Pro and iPad Air user agents from Chrome Dev Tools are not recognized as tablets. Mentioning Chrome Dev Tools here as I can't rule out Chrome using incorrect user agents.
To Reproduce
Steps to reproduce the behavior:
deviceis returned as{ vendor: 'Apple', model: 'Macintosh', type: undefined }Alternatively use one of these user agents which is what my Chrome (Version 119.0.6045.124) is using:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.0 Safari/605.1.15Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.0 Safari/605.1.15Expected behavior
devicereturned as{ vendor: 'Apple', model: 'iPad', type: 'tablet' }