From 4ca3cab301f9849549df16f6ed74d7b8d5bb9882 Mon Sep 17 00:00:00 2001 From: Adam Waldron Date: Mon, 14 Aug 2023 10:35:28 -0700 Subject: [PATCH] fix: demo page representation selector (#1416) --- scripts/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/index.js b/scripts/index.js index 4cf76f31a..02cdc50ab 100644 --- a/scripts/index.js +++ b/scripts/index.js @@ -6,7 +6,7 @@ representationsEl.addEventListener('change', function() { var selectedIndex = representationsEl.selectedIndex; - if (!selectedIndex || selectedIndex < 1 || !window.vhs) { + if (selectedIndex < 0 || !window.vhs) { return; } var selectedOption = representationsEl.options[representationsEl.selectedIndex];