Silence deprecated motionevent warnings on Firefox

This commit is contained in:
Joshua Granick
2022-03-19 11:29:01 -07:00
parent 79cf3ea998
commit f34c274bb1

View File

@@ -277,7 +277,11 @@ class HTML5Application
Browser.window.addEventListener("blur", handleWindowEvent, false);
Browser.window.addEventListener("resize", handleWindowEvent, false);
Browser.window.addEventListener("beforeunload", handleWindowEvent, false);
if (Reflect.hasField(Browser.window, "Accelerometer"))
{
Browser.window.addEventListener("devicemotion", handleSensorEvent, false);
}
#if stats
stats = untyped #if haxe4 js.Syntax.code #else __js__ #end ("new Stats ()");