0
0
Fork 0

Adjust game URL to copy and remove unused parameter

This commit is contained in:
Oliver-Akins 2021-01-01 19:52:58 -07:00
parent fb6cfd8218
commit 4ad2f0f13e

View file

@ -51,15 +51,15 @@ export default {
return this.$store.state.name; return this.$store.state.name;
}, },
gameURL() { 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: { methods: {
copySuccess() { copySuccess() {
this.copyURLButtonText = `Game Link Copied!`; this.copyURLButtonText = `Game Link Copied!`;
setTimeout(() => { this.copyURLButtonText = `Click to Copy Game Link`; }, 1000) setTimeout(() => { this.copyURLButtonText = `Click to Copy Game Link`; }, 1000)
}, },
copyError(e) { copyError() {
this.$emit(`error`, { this.$emit(`error`, {
status: 418, status: 418,
message: `Failed to copy game URL`, message: `Failed to copy game URL`,