Skip to content

Commit

Permalink
no message
Browse files Browse the repository at this point in the history
  • Loading branch information
littlespex authored and jfconti committed Apr 26, 2024
1 parent 288ed30 commit be5665e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/utils/cues.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
}

Expand Down

0 comments on commit be5665e

Please sign in to comment.