Skip to content

Commit

Permalink
refactor(withHTMLSubtitles): use track instead of selectedTrack for f…
Browse files Browse the repository at this point in the history
…allbackUrl
  • Loading branch information
tymmesyde committed Feb 13, 2025
1 parent 68f3790 commit d87a838
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/withHTMLSubtitles/withHTMLSubtitles.js
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ function withHTMLSubtitles(Video) {
delay = 0;

function getSubtitlesData(track, isFallback) {
var url = isFallback ? selectedTrack.fallbackUrl : track.url;
var url = isFallback ? track.fallbackUrl : track.url;

if (typeof url === 'string') {
return fetch(url)
Expand Down

0 comments on commit d87a838

Please sign in to comment.