X-Git-Url: https://git.auder.net/?p=vchess.git;a=blobdiff_plain;f=client%2Fsrc%2Fviews%2FGame.vue;h=7971aabe5a4ca939877356956c03b74210ea15e7;hp=a79cf803fd3a1600c6cc2e9535ea553e0f16eb94;hb=bd76b45611cbb58dcf774745a4d690277a82aacd;hpb=d8b1800bcec983faabc34bdb1057ef880488a160 diff --git a/client/src/views/Game.vue b/client/src/views/Game.vue index a79cf803..7971aabe 100644 --- a/client/src/views/Game.vue +++ b/client/src/views/Game.vue @@ -343,13 +343,10 @@ export default { this.drawOffer = "received"; break; case "newchat": - { - const chat = data.data; - this.newChat = chat; + this.newChat = data.data; if (!document.getElementById("modalChat").checked) document.getElementById("chatBtn").style.backgroundColor = "#c5fefe"; break; - } } }, socketCloseListener: function() {