mirror of
https://github.com/Modernizr/Modernizr.git
synced 2026-01-09 15:47:55 -05:00
* Add caniuse mappings Co-Authored-By: PavMel <pavmel@users.noreply.github.com> * Updated some caniuse strings Co-authored-by: PavMel <pavmel@users.noreply.github.com>
21 lines
564 B
JavaScript
21 lines
564 B
JavaScript
/*!
|
|
{
|
|
"name": "Vibration API",
|
|
"property": "vibrate",
|
|
"caniuse": "vibration",
|
|
"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.
|
|
*/
|
|
define(['Modernizr', 'prefixed'], function(Modernizr, prefixed) {
|
|
Modernizr.addTest('vibrate', !!prefixed('vibrate', navigator));
|
|
});
|