Skip to content

Commit

Permalink
fix for 81 srt conversion fail
Browse files Browse the repository at this point in the history
  • Loading branch information
maboa committed Apr 9, 2022
1 parent ba6fc3d commit d6518c1
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 d6518c1

Please sign in to comment.