Files
Modernizr/feature-detects/vibration.js
Markel F 3b0eb2be8c Add caniuse mappings (#2535)
* 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>
2020-04-17 17:43:44 +02:00

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));
});