fix lyrics caption

This commit is contained in:
vapormusic 2021-12-09 16:52:55 +07:00
parent 9c3fe5ca61
commit ec13b75a2f
3 changed files with 6 additions and 4 deletions

View file

@ -1158,8 +1158,8 @@ const app = new Vue({
})
}
}
} else if (app.currentLyricsLine == 0) {
if (!document.querySelector(`.lyric-line[line-index="0"]`).classList.contains("active"))
} else if (app.currentLyricsLine == 0) {
if (document.querySelector(`.lyric-line[line-index="0"]`) && !document.querySelector(`.lyric-line[line-index="0"]`).classList.contains("active"))
document.querySelector(`.lyric-line[line-index="0"]`).classList.add("active");
}
break;