From dd4bf320cd40cff4bd14637562856538075af88e Mon Sep 17 00:00:00 2001 From: ElementalAlchemist Date: Tue, 1 Nov 2022 21:06:23 -0500 Subject: [PATCH] Fix changing editor times breaking chat display --- thrimbletrimmer/scripts/edit.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/thrimbletrimmer/scripts/edit.js b/thrimbletrimmer/scripts/edit.js index 758aad6..8157724 100644 --- a/thrimbletrimmer/scripts/edit.js +++ b/thrimbletrimmer/scripts/edit.js @@ -126,10 +126,6 @@ window.addEventListener("DOMContentLoaded", async (event) => { updateWaveform(); waveformImage.classList.remove("hidden"); } - - await getChatLog(globalStartTimeString, globalEndTimeString); - document.getElementById("chat-replay").innerHTML = ""; - renderChatLog(); }); await loadVideoInfo(); @@ -1492,7 +1488,7 @@ function addChapterMarkerHandler(event) { event.currentTarget.previousElementSibling.appendChild(newChapterMarker); } -function rangeDataUpdated() { +async function rangeDataUpdated() { const clipBar = document.getElementById("clip-bar"); clipBar.innerHTML = ""; @@ -1546,6 +1542,10 @@ function rangeDataUpdated() { } } updateDownloadLink(); + + await getChatLog(globalStartTimeString, globalEndTimeString); + document.getElementById("chat-replay").innerHTML = ""; + renderChatLog(); } function setCurrentRangeStartToVideoTime() {