Fixes no author showing bug

This commit is contained in:
Michael 2017-11-23 16:55:42 -05:00
parent 67e09f7ab6
commit 77d00898be
2 changed files with 2 additions and 2 deletions

2
dist/APlayer.min.js vendored

File diff suppressed because one or more lines are too long

View File

@ -456,7 +456,7 @@ class APlayer {
this.element.getElementsByClassName('aplayer-pic')[0].style.backgroundImage = '';
}
this.element.getElementsByClassName('aplayer-title')[0].innerHTML = this.music.title;
this.element.getElementsByClassName('aplayer-author')[0].innerHTML = ` - ${this.music.author}`;
this.element.getElementsByClassName('aplayer-author')[0].innerHTML = this.music.author ? ' - ' + this.music.author : '';
if (this.element.getElementsByClassName('aplayer-list-light')[0]) {
this.element.getElementsByClassName('aplayer-list-light')[0].classList.remove('aplayer-list-light');
}