go home when game is gone
This commit is contained in:
parent
167b6460f4
commit
b2618e1ba8
@ -45,6 +45,9 @@ watchEffect(() => {
|
||||
if (data.value == null) {
|
||||
game.value = null;
|
||||
dealer.value = null;
|
||||
if (window.location.pathname.includes('game/')) {
|
||||
history.replaceState(null, '', window.origin);
|
||||
}
|
||||
return;
|
||||
}
|
||||
const m = JSON.parse(data.value) as Game | GameStart;
|
||||
|
Loading…
Reference in New Issue
Block a user