From 61b119ecbddf2275f39a91fa252e071c4767d863 Mon Sep 17 00:00:00 2001 From: julian laplace Date: Thu, 27 Oct 2022 22:36:20 +0200 Subject: play music button --- public/assets/js/lib/views/details/audioPlayer.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'public/assets/js/lib/views/details/audioPlayer.js') 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); } }, -- cgit v1.2.3-70-g09d2