ok thank you javascript for not being a half baked language at all
This commit is contained in:
parent
4dd5c42d55
commit
3b4891c0a7
|
|
@ -330,7 +330,7 @@ export default class CollabVMClient {
|
||||||
send(...args : StringLike[]) {
|
send(...args : StringLike[]) {
|
||||||
let guacElements = [...args].map((el) => {
|
let guacElements = [...args].map((el) => {
|
||||||
// This catches cases where the thing already is a string
|
// This catches cases where the thing already is a string
|
||||||
if(el instanceof String)
|
if(typeof el == "string")
|
||||||
return (el as string);
|
return (el as string);
|
||||||
return el.toString();
|
return el.toString();
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user