Merge pull request #166 from MPierre9/author-not-showing-fix
Fixes issue #146, Author showing problem
This commit is contained in:
commit
62a9e9f1c7
File diff suppressed because one or more lines are too long
|
|
@ -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');
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue