From 1bc8da3da9c5259f4c44992852fd146034d7cf40 Mon Sep 17 00:00:00 2001 From: WolverinDEV Date: Wed, 26 Dec 2018 14:21:52 +0100 Subject: [PATCH] fixed compiler error (missing casting) --- shared/js/chat.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shared/js/chat.ts b/shared/js/chat.ts index 3e915b98..172d34e0 100644 --- a/shared/js/chat.ts +++ b/shared/js/chat.ts @@ -25,7 +25,7 @@ namespace MessageHelper { return this.htmlEscape(object).map((entry, idx, array) => $.spawn("a").css("display", (idx == 0 || idx + 1 == array.length ? "inline" : "") + "block").html(entry)); } else if(typeof(object) === "object") { if(object instanceof $) - return [object]; + return [object as any]; return this.formatElement(""); } else if(typeof(object) === "function") return this.formatElement(object()); else if(typeof(object) === "undefined") return this.formatElement("");