Merge pull request #166 from MPierre9/author-not-showing-fix

Fixes issue #146, Author showing problem
This commit is contained in:
DIYgod
2017-11-24 11:45:59 +08:00
committed by GitHub
2 changed files with 2 additions and 2 deletions
+1 -1
View File
File diff suppressed because one or more lines are too long
+1 -1
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');
}