work around sync issues by reloading page when switching game
This commit is contained in:
parent
2e6764ffb5
commit
8a3e3ca4f2
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Reference in New Issue