X-Git-Url: https://git.auder.net/?p=vchess.git;a=blobdiff_plain;f=client%2Fsrc%2Fviews%2FGame.vue;h=cd781a5d1fb6b0524f22b3ffa079e65cb8e6e100;hp=6722f3341d8b0c1102fcc9adaed3d3f38216bfc2;hb=e50a802531b99829c533f22ecd21e359e7e1e049;hpb=204b0bb5dc8b5f2760fcbf60cc23deb4552f4305 diff --git a/client/src/views/Game.vue b/client/src/views/Game.vue index 6722f334..cd781a5d 100644 --- a/client/src/views/Game.vue +++ b/client/src/views/Game.vue @@ -1285,7 +1285,10 @@ console.log(data.data); // - from server (one correspondance game I play[ed] or not) // - from remote peer (one live game I don't play, finished or not) fetchGame: function(callback) { - if (Number.isInteger(this.gameRef) || !isNaN(parseInt(this.gameRef))) { + if ( + Number.isInteger(this.gameRef) || + !isNaN(parseInt(this.gameRef, 10)) + ) { // corr games identifiers are integers ajax( "/games",