fix getting lrc repeatedly

This commit is contained in:
DIYgod 2016-08-28 00:20:50 +08:00
parent f91eba1aba
commit 4621a74691
No known key found for this signature in database
GPG Key ID: F8797DD1088C6506
3 changed files with 3 additions and 3 deletions

2
dist/APlayer.min.js vendored

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -81,6 +81,7 @@ class APlayer {
this.savelrc.push(this.element.getElementsByClassName('aplayer-lrc-content')[i].innerHTML);
}
}
this.lrcs = [];
/**
* Update progress bar, including loading progress bar and play progress bar
@ -557,7 +558,6 @@ class APlayer {
if (this.option.showlrc) {
const index = this.multiple ? indexMusic : 0;
this.lrcs = [];
if (!this.lrcs[index]) {
let lrcs = '';
if (this.option.showlrc === 1) {