fix invite url encode

This commit is contained in:
Giulio 2021-05-10 12:19:07 +02:00
parent c4d767f4c4
commit f2a3646876

View File

@ -172,7 +172,7 @@ export default {
},
computed: {
inviteLink() {
return `${window.location.origin}/game?code=${this.lobbyName}${this.password?`&pwd=${this.password}`:''}`
return `${window.location.origin}/game?code=${encodeURIComponent(this.lobbyName)}${this.password?`&pwd=${this.password}`:''}`
},
isThereAnyBot() {
return this.players.filter(x => x.is_bot).length > 0;