Skip to content

Commit

Permalink
Merge pull request #82 from hyperaudio/81-srt-conversion-fails
Browse files Browse the repository at this point in the history
fix for 81 srt conversion fail
  • Loading branch information
maboa authored Apr 9, 2022
2 parents ba6fc3d + d6518c1 commit b8e094c
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions wp-hyperaudio/js/converter.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,6 @@ $(document).ready(function() {

function parseSRT(data) {

document.dispatchEvent(event);

var i = 0,
len = 0,
idx = 0,
Expand Down Expand Up @@ -212,12 +210,8 @@ $(document).ready(function() {
var stime;
if (wordLengthSplit) {
stime = Math.round((sub.start + si * stimeStep) * 1000);

document.dispatchEvent(event);
} else {
stime = Math.round((wordStart + sub.start) * 1000);

document.dispatchEvent(event);
}

wordStart = wordStart + wordTime;
Expand Down

0 comments on commit b8e094c

Please sign in to comment.