mirror of
https://github.com/ENSL/ensl_gathers.git
synced 2025-01-19 08:01:07 +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)
|
console.log(newState)
|
||||||
|
|
||||||
// Callbacks for new states
|
// Callbacks for new states
|
||||||
if (newState === "election" && previousState === "gathering") {
|
if (newState === "election"
|
||||||
console.log(soundController);
|
&& previousState === "gathering"
|
||||||
|
&& data.currentGatherer) {
|
||||||
soundController.playGatherMusic();
|
soundController.playGatherMusic();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue