From be5665eccbe93b3e97e6161bc70e48e72df0f5c5 Mon Sep 17 00:00:00 2001 From: Casey Occhialini <1508707+littlespex@users.noreply.github.com> Date: Wed, 15 Jun 2022 15:28:15 -0700 Subject: [PATCH] no message --- src/utils/cues.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/utils/cues.ts b/src/utils/cues.ts index 889c392e1b9..cf2c8e807cf 100644 --- a/src/utils/cues.ts +++ b/src/utils/cues.ts @@ -72,7 +72,11 @@ const Cues: CuesInterface = { cue.align = 'left'; // Clamp the position between 0 and 100 - if out of these bounds, Firefox throws an exception and captions break cue.position = Math.max(0, Math.min(100, 100 * (indent / 32))); - track?.addCue(cue); + + result.push(cue); + if (track) { + track.addCue(cue); + } } }