From 316504899a0d1643241b4a47539db146ba9c5bca Mon Sep 17 00:00:00 2001 From: Mike Lang Date: Sun, 27 Oct 2019 02:25:47 -0700 Subject: [PATCH] thrimbletrimmer: Fix a bug on initial load loadPlaylist was happening before bustime was set, resulting in the wrong times being loaded. --- thrimbletrimmer/scripts/IO.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/thrimbletrimmer/scripts/IO.js b/thrimbletrimmer/scripts/IO.js index 8a6c70f..e448edd 100644 --- a/thrimbletrimmer/scripts/IO.js +++ b/thrimbletrimmer/scripts/IO.js @@ -58,9 +58,10 @@ pageSetup = function() { document.getElementById("StreamStart").value = new Date(new Date().getTime() - 1000*60*10).toISOString().substring(0,19); document.getElementById("StreamEnd").value = new Date().toISOString().substring(0,19); setBustimeRange(); + + loadPlaylist(); }); - loadPlaylist(); } };