I know a lot of JavaScript libraries are depending on "ontouchstart" to detect if it's on tablet or a desktop.
Here's an example of code I'm talking about:
var hasTouch = ("ontouchstart" in window);
For now, I had to comment out all the tablet detection code for it to work.
What would be the best way of detecting a tablet vs a desktop?
Thanks!