let newGame = game;
newGame.type = this.classifyObject(game);
newGame.vname = this.getVname(game.vid);
+
+
+console.log(newGame.vname);
+console.log(game.vid);
if (!game.score)
// New game from Hall
newGame.score = "*";
.getElementById("btnC" + newChall.type)
.classList.add("somethingnew");
}
- if (chall.to == this.st.user.name) {
+ if (!!chall.to && chall.to == this.st.user.name) {
notify(
"New challenge",
// fromValues.name should exist since the player is online, but