diff options
Diffstat (limited to 'public/assets/js/lib/views/details/audioPlayer.js')
| -rw-r--r-- | public/assets/js/lib/views/details/audioPlayer.js | 5 |
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); } }, |
