aboutsummaryrefslogtreecommitdiffstats
path: root/src/client/Utils.hx
diff options
context:
space:
mode:
authorRblSb <msrblsb@gmail.com>2023-06-20 23:33:13 +0300
committerRblSb <msrblsb@gmail.com>2023-06-20 23:33:13 +0300
commitc476a16ad982e778580d74b8e4120ed29118129a (patch)
treec326895bc9eb57cf50123eadb049ec73b3a201f2 /src/client/Utils.hx
parentcdf7f00f613d636e587b7840ec8b263017513486 (diff)
Scroll to chat end button
Diffstat (limited to 'src/client/Utils.hx')
-rw-r--r--src/client/Utils.hx9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/client/Utils.hx b/src/client/Utils.hx
index cdf9f21..a0e19f7 100644
--- a/src/client/Utils.hx
+++ b/src/client/Utils.hx
@@ -8,6 +8,15 @@ import js.html.Element;
import js.html.URL;
class Utils {
+ public static function nativeTrace(msg:Dynamic, ?infos:haxe.PosInfos):Void {
+ final fileData = '${infos.fileName}:${infos.lineNumber}';
+ var args:Array<Dynamic> = [fileData, msg];
+ if (infos.customParams != null) args = args.concat(infos.customParams);
+ js.Browser.window.console.log(
+ ...haxe.Rest.of(args)
+ );
+ }
+
public static function isTouch():Bool {
return js.Syntax.code("'ontouchstart' in window");
}
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage