Silence deprecated motionevent warnings on Firefox
This commit is contained in:
@@ -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 ()");
|
||||
|
||||
Reference in New Issue
Block a user