From 3b4891c0a77a9803cb47ad7f9982a957269846c9 Mon Sep 17 00:00:00 2001 From: modeco80 Date: Mon, 11 Mar 2024 23:47:49 -0400 Subject: [PATCH] ok thank you javascript for not being a half baked language at all --- src/ts/protocol/CollabVMClient.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ts/protocol/CollabVMClient.ts b/src/ts/protocol/CollabVMClient.ts index fd6fac4..097a29c 100644 --- a/src/ts/protocol/CollabVMClient.ts +++ b/src/ts/protocol/CollabVMClient.ts @@ -330,7 +330,7 @@ export default class CollabVMClient { send(...args : StringLike[]) { let guacElements = [...args].map((el) => { // This catches cases where the thing already is a string - if(el instanceof String) + if(typeof el == "string") return (el as string); return el.toString(); });