diff options
| author | RblSb <msrblsb@gmail.com> | 2021-07-04 03:59:50 +0300 |
|---|---|---|
| committer | RblSb <msrblsb@gmail.com> | 2021-07-05 17:04:25 +0300 |
| commit | ede45cea8706eb8540e466df9861c2af8ebf9c44 (patch) | |
| tree | 74a20a6f082173378f918b48b08542881f31749a /src/client/Utils.hx | |
| parent | 265b3e1fb56bb0e5f797b3b35227a616b108a0c3 (diff) | |
Reformat
Diffstat (limited to 'src/client/Utils.hx')
| -rw-r--r-- | src/client/Utils.hx | 11 |
1 files changed, 3 insertions, 8 deletions
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); } } - } |
