I have a device of which I don\'t know if it has a vibrator.
Is there a way to query for the availability of the vibrator?
Maybe it'll help someone. Since I'm building a PWA, I ended up checking the screen size:
if (window.innerWidth < 600) { window.navigator.vibrate(300); }