Where is the Vibration API hiding in Chrome 23?

2019-06-17 03:17发布

问题:

According to a post on Peter Beverloo's blog, "The webkit prefix has been dropped from the Vibration API implementation as it reached Candidate Recommendation."

In Firefox, the Vibration API can be found at navigator.vibrate (per the spec), not so in Chrome 23 - with or without the webkit prefix. I've tried enabling experimental javascript in chrome://flags but to no effect.

Despite playing around in devtools and plenty of searching on the net, I'm still unable to locate this API. Where is it hiding?

回答1:

The blog was just indicating that the API has been unprefixed in WebKit. We don't have it in Chrome for Desktop and we don't have it in Chrome for Android as of version 25