From a92895fa1d065ee50711d446561b159e6a44510e Mon Sep 17 00:00:00 2001 From: Kevin Ngo Date: Tue, 9 Oct 2018 19:33:24 -0700 Subject: [PATCH] restart song on clear game --- src/components/song.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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();