79647687

Date: 2025-06-01 15:50:44
Score: 1.5
Natty:
Report link

You just need to check if the device is touch-sensitive.

const isMobileDevice = 'ontouchstart' in window || navigator.maxTouchPoints > 0;
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Hùng Đỗ