From ede45cea8706eb8540e466df9861c2af8ebf9c44 Mon Sep 17 00:00:00 2001 From: RblSb Date: Sun, 4 Jul 2021 03:59:50 +0300 Subject: Reformat --- src/client/Utils.hx | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'src/client/Utils.hx') diff --git a/src/client/Utils.hx b/src/client/Utils.hx index 00a26fe..de6b16c 100644 --- a/src/client/Utils.hx +++ b/src/client/Utils.hx @@ -1,11 +1,10 @@ package client; -import js.html.Element; import js.Browser.document; import js.Browser.window; +import js.html.Element; class Utils { - public static function isTouch():Bool { return js.Syntax.code("'ontouchstart' in window"); } @@ -37,11 +36,8 @@ class Utils { public static function hasFullscreen():Bool { final doc:Dynamic = document; - return ( - document.fullscreenElement != null - || doc.mozFullScreenElement != null - || doc.webkitFullscreenElement != null - ); + return (document.fullscreenElement != null || doc.mozFullScreenElement != null + || doc.webkitFullscreenElement != null); } public static function requestFullscreen(el:Element):Bool { @@ -91,5 +87,4 @@ class Utils { document.body.removeChild(textarea); } } - } -- cgit v1.2.3