Adjust game URL to copy and remove unused parameter
This commit is contained in:
parent
fb6cfd8218
commit
4ad2f0f13e
1 changed files with 3 additions and 3 deletions
|
|
@ -51,15 +51,15 @@ export default {
|
|||
return this.$store.state.name;
|
||||
},
|
||||
gameURL() {
|
||||
return `${window.location.protocol}//${window.location.host}?game=${this.$store.state.game_code}`;
|
||||
}
|
||||
return `${window.location.protocol}//${window.location.host}/?game=${this.$store.state.game_code}`;
|
||||
},
|
||||
},
|
||||
methods: {
|
||||
copySuccess() {
|
||||
this.copyURLButtonText = `Game Link Copied!`;
|
||||
setTimeout(() => { this.copyURLButtonText = `Click to Copy Game Link`; }, 1000)
|
||||
},
|
||||
copyError(e) {
|
||||
copyError() {
|
||||
this.$emit(`error`, {
|
||||
status: 418,
|
||||
message: `Failed to copy game URL`,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue