diff --git a/web/src/views/CreateJoin.vue b/web/src/views/CreateJoin.vue index 3c27289..95da088 100644 --- a/web/src/views/CreateJoin.vue +++ b/web/src/views/CreateJoin.vue @@ -64,7 +64,10 @@ export default { return; }; + history.replaceState(null, ``, `?game=${data.game_code}`); + // Save the data in the store + this.$store.commit(`playerList`, data.players); this.$store.commit(`game_code`, this.game_code); this.$store.commit(`player`, { name: this.name, @@ -79,7 +82,10 @@ export default { return; }; + history.replaceState(null, ``, `?game=${data.game_code}`); + // Update storage + this.$store.commit(`playerList`, data.players); this.$store.commit(`game_code`, data.game_code); this.$store.commit(`player`, { name: this.name, diff --git a/web/src/views/Lobby.vue b/web/src/views/Lobby.vue index 6a4f975..1891a11 100644 --- a/web/src/views/Lobby.vue +++ b/web/src/views/Lobby.vue @@ -4,20 +4,22 @@