From 9cf844f3f5df8865520934974959d48e6cdf6539 Mon Sep 17 00:00:00 2001 From: mcanam Date: Mon, 29 Apr 2024 03:27:02 +0700 Subject: [PATCH] fix(syncher): remove unnecessary `words` property from `line` data --- src/syncher.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/syncher.js b/src/syncher.js index a3a35c5..564dd61 100644 --- a/src/syncher.js +++ b/src/syncher.js @@ -10,9 +10,11 @@ export default function syncher(data, time) { const lines = data.lines; line = findLine(lines, time); - if (line != null && data.enhanced) { - const words = line.words; - word = findWord(words, time); + if (line != null) { + if (data.enhanced) { + const words = line.words; + word = findWord(words, time); + } // delete 'words' property from line // because we don't need it anymore.