From 18b6e7dfc2d60e1824f09a80195d063dca4bf718 Mon Sep 17 00:00:00 2001 From: LoveEevee Date: Mon, 30 Mar 2020 11:59:42 +0300 Subject: [PATCH] Fix debug --- public/src/js/debug.js | 2 +- public/src/js/lyrics.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/public/src/js/debug.js b/public/src/js/debug.js index 1b2aeb2..447f24f 100644 --- a/public/src/js/debug.js +++ b/public/src/js/debug.js @@ -144,7 +144,7 @@ class Debug{ this.offsetChange(this.offsetSlider.get(), true) this.branchChange(null, true) this.volumeChange(this.volumeSlider.get(), true) - this.lyricsChange(this.lyricsSlider.get()) + this.lyricsChange(this.lyricsSlider.get(), true) }else{ this.songHash = selectedSong.hash this.offsetSlider.set(this.defaultOffset) diff --git a/public/src/js/lyrics.js b/public/src/js/lyrics.js index 122efa8..f2708a2 100644 --- a/public/src/js/lyrics.js +++ b/public/src/js/lyrics.js @@ -42,7 +42,7 @@ class Lyrics{ if(index !== -1){ time = cmd }else{ - var matches = value.match(rLinebreak) + var matches = value.match(this.rLinebreak) if(matches){ var value1 = value.slice(0, matches.index) index = value1.indexOf(arrow)