Skip to content

Commit

Permalink
fix: demo page representation selector
Browse files Browse the repository at this point in the history
  • Loading branch information
adrums86 committed Aug 10, 2023
1 parent de183c8 commit 5043a24
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down

0 comments on commit 5043a24

Please sign in to comment.