Hmm.. We should probably make the function not exist if the hardware doesn't support vibration.
/ Jonas On Tue, Feb 11, 2014 at 2:50 PM, Marcus Cavanaugh <[email protected]> wrote: > There's a bug[1] filed for removing the Vibrate option from Clock if the > hardware doesn't support vibration. According to the IDL docs for > navigator.vibrate, " If the device does not have a vibrator, this function > does nothing.", so I can't just feature detect on "navigator.vibrate". > > Is there any existing API or feature detect implemented to actually detect > whether a device has a vibration motor? > > Marcus > > [1]: https://bugzilla.mozilla.org/show_bug.cgi?id=964770 > _______________________________________________ > dev-b2g mailing list > [email protected] > https://lists.mozilla.org/listinfo/dev-b2g _______________________________________________ dev-b2g mailing list [email protected] https://lists.mozilla.org/listinfo/dev-b2g
