diff --git a/js/chess.js b/js/chess.js index a526934..90d731a 100644 --- a/js/chess.js +++ b/js/chess.js @@ -750,14 +750,16 @@ function switchGameId(newId){ return; } + boardElem.data('gameId', newId); + location.hash = '#/' + newId; + if (gameId) { //gun.get(PacoSakoUUID).get('games').get(gameId).off(); //gun.get(PacoSakoUUID).get('meta').get(gameId).off(); + location.reload(); + return; } - boardElem.data('gameId', newId); - location.hash = '#/' + newId; - const notifyAfter = new Date().getTime() + 2000; $(window).data('notifyAfter', new Date().getTime() + 2000); window.setTimeout(function() {