mirror of
https://gitea.invidious.io/iv-org/videojs-quality-selector.git
synced 2024-08-15 00:43:13 +00:00
fix: Regression bug with the initial source selection
The if (item.source.src !== src) had to be removed for the initial selection to be applied
This commit is contained in:
parent
d3a5e81c38
commit
82fc7a155c
1 changed files with 1 additions and 3 deletions
|
@ -60,9 +60,7 @@ module.exports = function(videojs) {
|
|||
if (this.selectedSrc !== src) {
|
||||
this.selectedSrc = src;
|
||||
_.each(this.items, function(item) {
|
||||
if (item.source.src !== src) {
|
||||
item.selected(item.source.src === src);
|
||||
}
|
||||
item.selected(item.source.src === src);
|
||||
});
|
||||
}
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue