From 00437e6e606a9604b734fba5277730bd1fd9d527 Mon Sep 17 00:00:00 2001 From: "R. Aidan Campbell" Date: Sat, 27 Aug 2016 09:26:27 -0400 Subject: [PATCH] add fallback bitrate of 10mbps for unrecognized resolutions --- static/js/index.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/static/js/index.js b/static/js/index.js index ea38c9d..a4f4e7b 100644 --- a/static/js/index.js +++ b/static/js/index.js @@ -611,6 +611,8 @@ function updateDefaultBitrate() { } else { // 2160p, 60fps $('#bitrateSlider')[0].MaterialSlider.change('80'); } + } else { // unrecognized option. In case someone screws with the JS to add custom resolutions + $('#bitrateSlider')[0].MaterialSlider.change('10'); } updateBitrateField();