X-Git-Url: https://git.auder.net/?a=blobdiff_plain;f=public%2Fjavascripts%2Findex.js;h=fe0b36a3be3ae15080113955f09b9523bd7715f1;hb=d44df0b01732d1948525daef5df62211ea6e1f64;hp=bc4cd9e1d2a23b4940fbb2193643742faf4f5c10;hpb=81bc1102368a5a8b9358f58b77c241f82f3c2c4b;p=vchess.git diff --git a/public/javascripts/index.js b/public/javascripts/index.js index bc4cd9e1..fe0b36a3 100644 --- a/public/javascripts/index.js +++ b/public/javascripts/index.js @@ -38,9 +38,9 @@ new Vue({ if (data.code == "counts") this.counts = data.counts; else if (data.code == "increase") - this.counts[data.vname]++; + this.counts[data.vid]++; else if (data.code == "decrease") - this.counts[data.vname]--; + this.counts[data.vid]--; }; const socketCloseListener = () => { this.conn = new WebSocket(url + "/?sid=" + sid + "&page=index");