Just use the GetPlayerList event for all players instead of only the host
This commit is contained in:
parent
a81e0ffb33
commit
607575bad5
1 changed files with 1 additions and 5 deletions
|
|
@ -24,11 +24,7 @@ export default {
|
||||||
mounted() {
|
mounted() {
|
||||||
this.game_code = sessionStorage.getItem(`game-code`);
|
this.game_code = sessionStorage.getItem(`game-code`);
|
||||||
this.is_host = JSON.parse(sessionStorage.getItem(`is-host`));
|
this.is_host = JSON.parse(sessionStorage.getItem(`is-host`));
|
||||||
|
|
||||||
// Get the player data if the host loaded the component
|
|
||||||
if (this.is_host) {
|
|
||||||
this.$nextTick(() => this.getPlayerList());
|
this.$nextTick(() => this.getPlayerList());
|
||||||
};
|
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
getPlayerList() {
|
getPlayerList() {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue