Fix changing editor times breaking chat display

pull/312/head
ElementalAlchemist 2 years ago committed by Mike Lang
parent d44bbe3440
commit dd4bf320cd

@ -126,10 +126,6 @@ window.addEventListener("DOMContentLoaded", async (event) => {
updateWaveform(); updateWaveform();
waveformImage.classList.remove("hidden"); waveformImage.classList.remove("hidden");
} }
await getChatLog(globalStartTimeString, globalEndTimeString);
document.getElementById("chat-replay").innerHTML = "";
renderChatLog();
}); });
await loadVideoInfo(); await loadVideoInfo();
@ -1492,7 +1488,7 @@ function addChapterMarkerHandler(event) {
event.currentTarget.previousElementSibling.appendChild(newChapterMarker); event.currentTarget.previousElementSibling.appendChild(newChapterMarker);
} }
function rangeDataUpdated() { async function rangeDataUpdated() {
const clipBar = document.getElementById("clip-bar"); const clipBar = document.getElementById("clip-bar");
clipBar.innerHTML = ""; clipBar.innerHTML = "";
@ -1546,6 +1542,10 @@ function rangeDataUpdated() {
} }
} }
updateDownloadLink(); updateDownloadLink();
await getChatLog(globalStartTimeString, globalEndTimeString);
document.getElementById("chat-replay").innerHTML = "";
renderChatLog();
} }
function setCurrentRangeStartToVideoTime() { function setCurrentRangeStartToVideoTime() {

Loading…
Cancel
Save