hgoebl / mobile-detect.js

Device detection (phone, tablet, desktop, mobile grade, os, versions)
http://hgoebl.github.io/mobile-detect.js/
MIT License
4.12k stars 892 forks source link

How to detect table iPad Pro? #69

Closed nghiepdev closed 7 years ago

nghiepdev commented 7 years ago

Hi guys,

Sometimes, I just want to detect only iPad Pro without IPad. Or somehow I want to it looks like this:

if(md.table() && width >= 1024) {
  // do stuff
} 

Because I'm using mobile-detect.js in Node.js environment so I cannot get width device by screen.width/height

Thanks, advance.

hgoebl commented 7 years ago

Not possible server side.