Skip to content

Commit

Permalink
Update player.js
Browse files Browse the repository at this point in the history
  • Loading branch information
kiriles90 authored Mar 11, 2024
1 parent f8e832c commit c6a6ece
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/app/lib/views/player/player.js
Original file line number Diff line number Diff line change
Expand Up @@ -740,6 +740,10 @@
for (var i = $('.vjs-subtitles-button .vjs-menu-item').length - 1; i > 0; i--) {
item = $('.vjs-subtitles-button .vjs-menu-item')[i];
if (item.innerText !== i18n.__('Subtitles') && item.innerText !== i18n.__('Custom...') && item.innerText !== i18n.__('Disabled') && item.innerText !== i18n.__('Local')) {
if (item.classList.contains('vjs-selected')) {
this.prevSub = $('.vjs-subtitles-button .vjs-menu-item')[0];
this.prevSub.click();
}
item.remove();
}
}
Expand Down

0 comments on commit c6a6ece

Please sign in to comment.