diff --git a/src/components/song.js b/src/components/song.js index 230cd14..99e8baf 100644 --- a/src/components/song.js +++ b/src/components/song.js @@ -17,7 +17,7 @@ AFRAME.registerComponent('song', { audio.crossOrigin = 'anonymous'; this.el.sceneEl.appendChild(audio); - this.el.addEventListener('pausemenurestart', () => { + this.el.addEventListener('cleargame', () => { if (audio.paused) { audio.currentTime = 0; audio.play();