From 5168fd120d39d5e08084b9d5b69114eea1811d4a Mon Sep 17 00:00:00 2001 From: ElementalAlchemist Date: Sun, 24 Oct 2021 23:28:21 -0500 Subject: [PATCH] Fix incorrect loop variable declaration preventing some load processes --- thrimbletrimmer/scripts/edit.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/thrimbletrimmer/scripts/edit.js b/thrimbletrimmer/scripts/edit.js index 4de35ba..671dfe7 100644 --- a/thrimbletrimmer/scripts/edit.js +++ b/thrimbletrimmer/scripts/edit.js @@ -352,7 +352,7 @@ async function initializeVideoInfo() { player.on("loadedmetadata", () => { const rangeDefinitionsContainer = document.getElementById("range-definitions"); if (videoInfo.video_ranges && videoInfo.video_ranges.length > 0) { - for (const rangeIndex = 0; rangeIndex < videoInfo.video_ranges.length; rangeIndex++) { + for (let rangeIndex = 0; rangeIndex < videoInfo.video_ranges.length; rangeIndex++) { if (rangeIndex >= rangeDefinitionsContainer.children.length) { addRangeDefinition(); }