Just use the GetPlayerList event for all players instead of only the host

This commit is contained in:
Oliver-Akins 2020-10-02 10:16:49 -06:00
parent a81e0ffb33
commit 607575bad5

View file

@ -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`));
this.$nextTick(() => this.getPlayerList());
// Get the player data if the host loaded the component
if (this.is_host) {
this.$nextTick(() => this.getPlayerList());
};
}, },
methods: { methods: {
getPlayerList() { getPlayerList() {