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
commit 62a9e9f1c7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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');
}