mirror of
https://github.com/ENSL/ensl_gathers.git
synced 2025-01-18 23:51:43 +00:00
Only play music for participating gatherers fixes #10
This commit is contained in:
parent
59d4b0a731
commit
397ba7aee8
1 changed files with 3 additions and 2 deletions
|
@ -551,8 +551,9 @@ var Gather = React.createClass({
|
|||
console.log(newState)
|
||||
|
||||
// Callbacks for new states
|
||||
if (newState === "election" && previousState === "gathering") {
|
||||
console.log(soundController);
|
||||
if (newState === "election"
|
||||
&& previousState === "gathering"
|
||||
&& data.currentGatherer) {
|
||||
soundController.playGatherMusic();
|
||||
}
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue