Skip to content

Commit

Permalink
fix: segments.length typerror
Browse files Browse the repository at this point in the history
  • Loading branch information
luwes committed Mar 7, 2024
1 parent 2ccd11b commit 0f5cf9d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/media-chrome-range.js
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,7 @@ class MediaChromeRange extends globalThis.HTMLElement {
const clipping = this.shadowRoot.querySelector('#segments-clipping');
clipping.textContent = '';

this.container.classList.toggle('segments', !!segments.length);
this.container.classList.toggle('segments', !!segments?.length);

if (!segments?.length) return;

Expand Down

0 comments on commit 0f5cf9d

Please sign in to comment.