X-Git-Url: https://git.auder.net/?a=blobdiff_plain;ds=sidebyside;f=client%2Fsrc%2Fcomponents%2FBaseGame.vue;h=5ee5e0c72ae9d9d1bb2ff2072f61d5f26ab0d9da;hb=b4fb161253c5e7b4581ca37d22339111dd4aa861;hp=e8ca6967e28a8421c1173d594ec23b14375ca182;hpb=2c4ea524d5acf3793e6f1283f888e4ed4e767644;p=vchess.git diff --git a/client/src/components/BaseGame.vue b/client/src/components/BaseGame.vue index e8ca6967..5ee5e0c7 100644 --- a/client/src/components/BaseGame.vue +++ b/client/src/components/BaseGame.vue @@ -145,7 +145,7 @@ export default { endGame: function(score) { this.score = score; this.showScoreMsg(score); - this.$emit("gameover"); //score not required (TODO?) + this.$emit("gameover", score); }, animateMove: function(move) { let startSquare = document.getElementById(getSquareId(move.start));