Skip to content

Commit

Permalink
fix: demo page representation selector (#1416)
Browse files Browse the repository at this point in the history
  • Loading branch information
adrums86 authored Aug 14, 2023
1 parent 4590bdd commit 4ca3cab
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 4ca3cab

Please sign in to comment.