fix invite url encode
This commit is contained in:
parent
c4d767f4c4
commit
f2a3646876
@ -172,7 +172,7 @@ export default {
|
|||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
inviteLink() {
|
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() {
|
isThereAnyBot() {
|
||||||
return this.players.filter(x => x.is_bot).length > 0;
|
return this.players.filter(x => x.is_bot).length > 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user