browsernizr
Version:
Modernizr wrapper for use with browserify
21 lines (19 loc) • 566 B
JavaScript
/*!
{
"name": "Vibration API",
"property": "vibrate",
"notes": [{
"name": "MDN Docs",
"href": "https://developer.mozilla.org/en/DOM/window.navigator.mozVibrate"
},{
"name": "W3C Spec",
"href": "https://www.w3.org/TR/vibration/"
}]
}
!*/
/* DOC
Detects support for the API that provides access to the vibration mechanism of the hosting device, to provide tactile feedback.
*/
var Modernizr = require('./../lib/Modernizr.js');
var prefixed = require('./../lib/prefixed.js');
Modernizr.addTest('vibrate', !!prefixed('vibrate', navigator));