diff --git a/Backends/HTML5/kha/SystemImpl.hx b/Backends/HTML5/kha/SystemImpl.hx index 1c30a02eb..f9960ea42 100644 --- a/Backends/HTML5/kha/SystemImpl.hx +++ b/Backends/HTML5/kha/SystemImpl.hx @@ -215,6 +215,7 @@ class SystemImpl { } public static function vibrate(ms: Int): Void { + if (Browser.navigator.vibrate == null) return; Browser.navigator.vibrate(ms); }