Skip to content

Commit 5ab4de8

Browse files
committed
fix settings on ios
1 parent 1373094 commit 5ab4de8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

haptics.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,7 @@ function webkitHaptic() {
2121

2222
function haptic(x) {
2323
webkitHaptic();
24-
navigator.vibrate(x || 50);
24+
if (/Android/i.test(navigator.userAgent)) {
25+
navigator.vibrate(x || 50);
26+
}
2527
}

0 commit comments

Comments
 (0)