summaryrefslogtreecommitdiff
path: root/public/assets/js/lib/views/details/audioPlayer.js
diff options
context:
space:
mode:
authorjulian laplace <julescarbon@gmail.com>2022-10-27 22:36:20 +0200
committerjulian laplace <julescarbon@gmail.com>2022-10-27 22:36:20 +0200
commit61b119ecbddf2275f39a91fa252e071c4767d863 (patch)
tree106e02593edaf66865fc5f3a0924a2f8abccb3d5 /public/assets/js/lib/views/details/audioPlayer.js
parenteea34be30711fc9de9a65dce772b0f8b42541f9c (diff)
play music button
Diffstat (limited to 'public/assets/js/lib/views/details/audioPlayer.js')
-rw-r--r--public/assets/js/lib/views/details/audioPlayer.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/public/assets/js/lib/views/details/audioPlayer.js b/public/assets/js/lib/views/details/audioPlayer.js
index a2e38e5..89f0dd4 100644
--- a/public/assets/js/lib/views/details/audioPlayer.js
+++ b/public/assets/js/lib/views/details/audioPlayer.js
@@ -75,7 +75,7 @@ const AudioPlayer = View.extend({
/**
* Receiving play events
*/
- onPlay: function (element) {
+ onPlay: function ({ href, title, element }) {
if (!this.active) {
this.$el.removeClass("unloaded");
this.active = true;
@@ -87,8 +87,7 @@ const AudioPlayer = View.extend({
}
this.onTimeUpdate();
- if (element) {
- const title = element.innerText;
+ if (title) {
this.$title.html(title);
}
},