Update APlayer.js

This commit is contained in:
Karl Chen 2017-10-31 12:10:36 +08:00 committed by GitHub
parent 6c019aba08
commit ceb2bc5feb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -452,6 +452,9 @@ class APlayer {
if (this.music.pic) {
this.element.getElementsByClassName('aplayer-pic')[0].style.backgroundImage = `url('${this.music.pic}')`;
}
else {
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}`;
if (this.element.getElementsByClassName('aplayer-list-light')[0]) {