From: Benjamin Auder Date: Mon, 30 Mar 2020 19:19:11 +0000 (+0200) Subject: Smallfix + remove traces X-Git-Url: https://git.auder.net/?p=vchess.git;a=commitdiff_plain;h=a8ed318282e8e8c93202380254debc647fb1c50c Smallfix + remove traces --- diff --git a/client/src/views/Game.vue b/client/src/views/Game.vue index 5145e588..8b5ca8b6 100644 --- a/client/src/views/Game.vue +++ b/client/src/views/Game.vue @@ -490,7 +490,7 @@ export default { } }, getGameType: function(game) { - if (!!game.id.match(/^i/)) return "import"; + if (!!game.id.toString().match(/^i/)) return "import"; return game.cadence.indexOf("d") >= 0 ? "corr" : "live"; }, // Notify something after a new move (to opponent and me on MyGames page) @@ -1189,11 +1189,6 @@ export default { // - 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) { - -console.log("fecth"); - console.log(this.gameRef); - console.log(this.gameRef.match(/^i/)); - if (Number.isInteger(this.gameRef) || !isNaN(parseInt(this.gameRef))) { // corr games identifiers are integers ajax(