Skip to content

Commit

Permalink
Merge pull request #59 from hyperaudio/58-bug-fix
Browse files Browse the repository at this point in the history
58 bug fix for captions
  • Loading branch information
maboa authored Jan 13, 2021
2 parents 7664221 + c04f72d commit b4c661a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions wp-hyperaudio/js/caption.js
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,10 @@ var caption = (function () {

if (firstLine === true) {

if (lastOutTime === undefined) {
lastOutTime = wordMeta.start + wordMeta.duration;
}

thisCaption = new captionMeta(formatSeconds(lastInTime), formatSeconds(lastOutTime), "");
thisCaption.text += lineText + "\n";

Expand Down

0 comments on commit b4c661a

Please sign in to comment.