api key now gets shown in console

This commit is contained in:
Janis
2022-10-27 20:42:02 +02:00
parent e4bff27a3e
commit bf3c924b51
3 changed files with 7 additions and 3 deletions

View File

@@ -23,10 +23,15 @@ function main() {
ws.onmessage = (event) => {
let data = JSON.parse(event.data);
console.log(data);
// console.log(data);
switch (data.type) {
case "auth":
handleAuthMessage(data);
console.log(
"%c --> API-KEY: %s ",
"color:red;font-weight:bold;",
` ${data.payload.apiKey}`
);
break;
case "clientMoved":
handleClientMoved(data);