summaryrefslogtreecommitdiff
path: root/frontend/site/audio/audio.player.js
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2021-03-23 16:20:09 +0100
committerJules Laplace <julescarbon@gmail.com>2021-03-23 16:20:09 +0100
commit3b1d8d3416b27744287c7dc85ceede31e56e4dce (patch)
treecb771e213986b925d607add2275e3526a0208310 /frontend/site/audio/audio.player.js
parentfb82ff9fa188769f7cf7bb02c1c574201cbe9f85 (diff)
hide on click
Diffstat (limited to 'frontend/site/audio/audio.player.js')
-rw-r--r--frontend/site/audio/audio.player.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/frontend/site/audio/audio.player.js b/frontend/site/audio/audio.player.js
index 9914cd6..17edeee 100644
--- a/frontend/site/audio/audio.player.js
+++ b/frontend/site/audio/audio.player.js
@@ -118,7 +118,11 @@ class Player {
}
handleEnded() {
- this.release()
+ if (this.type === 'background') {
+ this.restart()
+ } else {
+ this.release()
+ }
}
play() {