From bd0b3bf7d03b9dcb2614fa515932f8b0bcfab314 Mon Sep 17 00:00:00 2001 From: Mitchell Loeppky Date: Thu, 17 Oct 2019 12:31:26 -0700 Subject: [PATCH] Fix player dropdown being empty on page load if no protocol slection is in the local storage --- ui.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ui.js b/ui.js index 1481efc..8b4273b 100644 --- a/ui.js +++ b/ui.js @@ -87,12 +87,14 @@ function updateFieldsCorrespondingToStreamingProtocol() { }); $('#player').trigger('change'); } +updateFieldsCorrespondingToStreamingProtocol(); function updateFieldsCorrespondingToPlaybackMode() { var isLive = $('#playbackMode').val() === 'LIVE'; $('#startTimestamp').prop('disabled', isLive); $('#endTimestamp').prop('disabled', isLive); } +updateFieldsCorrespondingToPlaybackMode(); $('.loader').hide(); $('.main').show();