Apparently JavaScript hates its own events

pull/237/head
ElementalAlchemist 3 years ago committed by Mike Lang
parent af25a90c4a
commit 86494797e9

@ -259,7 +259,7 @@ async function initializeVideoInfo() {
for (const range of videoInfo.video_ranges) { for (const range of videoInfo.video_ranges) {
let startTime = range[0]; let startTime = range[0];
let endTime = range[1]; let endTime = range[1];
if (startTime) { if (startTime) {
startTime = dateObjFromWubloaderTime(startTime); startTime = dateObjFromWubloaderTime(startTime);
} else { } else {
@ -868,7 +868,7 @@ function getRangeSetClickHandler(startOrEnd) {
const videoPlayerTime = player.currentTime(); const videoPlayerTime = player.currentTime();
setField.value = videoHumanTimeFromVideoPlayerTime(videoPlayerTime); setField.value = videoHumanTimeFromVideoPlayerTime(videoPlayerTime);
setField.dispatchEvent(new Event("change")); rangeDataUpdated();
}; };
} }

Loading…
Cancel
Save