Created
March 30, 2017 15:31
-
-
Save gauntface/34c6d85983320f2ae982e409d63fcef6 to your computer and use it in GitHub Desktop.
Feature detect vibrate on notifications.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| if ('vibrate' in Notification.prototype) { | |
| // Vibrate property is supported. | |
| } else { | |
| // Vibrate property is NOT supported. | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment