Fix debug

This commit is contained in:
LoveEevee 2020-03-30 11:59:42 +03:00
parent 3679c27986
commit 18b6e7dfc2
2 changed files with 2 additions and 2 deletions

View File

@ -144,7 +144,7 @@ class Debug{
this.offsetChange(this.offsetSlider.get(), true) this.offsetChange(this.offsetSlider.get(), true)
this.branchChange(null, true) this.branchChange(null, true)
this.volumeChange(this.volumeSlider.get(), true) this.volumeChange(this.volumeSlider.get(), true)
this.lyricsChange(this.lyricsSlider.get()) this.lyricsChange(this.lyricsSlider.get(), true)
}else{ }else{
this.songHash = selectedSong.hash this.songHash = selectedSong.hash
this.offsetSlider.set(this.defaultOffset) this.offsetSlider.set(this.defaultOffset)

View File

@ -42,7 +42,7 @@ class Lyrics{
if(index !== -1){ if(index !== -1){
time = cmd time = cmd
}else{ }else{
var matches = value.match(rLinebreak) var matches = value.match(this.rLinebreak)
if(matches){ if(matches){
var value1 = value.slice(0, matches.index) var value1 = value.slice(0, matches.index)
index = value1.indexOf(arrow) index = value1.indexOf(arrow)