X-Git-Url: https://git.auder.net/doc/current/git-logo.png?a=blobdiff_plain;f=client%2Fsrc%2Fviews%2FGame.vue;h=f1521e679f6f9acea48d4133adc774bc7b9b09fd;hb=ca6fae20191190bd6b8234b56963aa45652693e4;hp=f7e5549453c65a8ff24c2355ce8d52f3af1848c1;hpb=1112f1fdd39a4599cebc4b0b03bee1d28f1236ee;p=vchess.git diff --git a/client/src/views/Game.vue b/client/src/views/Game.vue index f7e55494..f1521e67 100644 --- a/client/src/views/Game.vue +++ b/client/src/views/Game.vue @@ -456,6 +456,7 @@ export default { }); break; case "connect": + console.log("connect " + data.from + " " + !!this.people[data.from]); if (!this.people[data.from]) { this.people[data.from] = { focus: true }; this.newConnect[data.from] = true; //for self multi-connects tests @@ -463,9 +464,11 @@ export default { } break; case "disconnect": + console.log("disconnect " + data.from); this.$delete(this.people, data.from); break; case "getfocus": { + console.log("get focus " + data.from + " " + !!this.people[data.from]); let player = this.people[data.from]; if (!!player) { player.focus = true; @@ -474,6 +477,7 @@ export default { break; } case "losefocus": { + console.log("lose focus " + data.from + " " + !!this.people[data.from]); let player = this.people[data.from]; if (!!player) { player.focus = false;