refactor: remove repeated code (#268)
This commit is contained in:
parent
8ff2095ff6
commit
d01140859d
|
|
@ -46,7 +46,6 @@ class APlayer {
|
|||
}
|
||||
|
||||
// save lrc
|
||||
this.container = this.options.container;
|
||||
if (this.options.lrcType === 2 || this.options.lrcType === true) {
|
||||
const lrcEle = this.container.getElementsByClassName('aplayer-lrc-content');
|
||||
for (let i = 0; i < lrcEle.length; i++) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue