rename victoryfake event to test victory

This commit is contained in:
Kevin Ngo
2018-11-17 05:52:43 -08:00
parent 836c76b412
commit 5e43d0107a
3 changed files with 7 additions and 2 deletions

View File

@@ -44,7 +44,7 @@ AFRAME.registerComponent('song', {
this.el.addEventListener('wallhitend', this.onWallHitEnd.bind(this));
if (process.env.NODE_ENV !== 'production') {
this.el.addEventListener('fakevictory', () => {
this.el.addEventListener('victoryfake', () => {
this.source.stop();
this.source.disconnect();
this.victory();