mirror of
https://github.com/iv-org/invidious.git
synced 2024-12-13 01:34:40 -05:00
Decrement currentSource length on splice
This commit is contained in:
parent
20c0bff96d
commit
a8db5aaed8
@ -108,6 +108,7 @@ var currentSources = player.currentSources();
|
|||||||
for ( var i = 0; i < currentSources.length; i++ ) {
|
for ( var i = 0; i < currentSources.length; i++ ) {
|
||||||
if (player.canPlayType(currentSources[i]["type"].split(";")[0]) === "") {
|
if (player.canPlayType(currentSources[i]["type"].split(";")[0]) === "") {
|
||||||
currentSources.splice(i);
|
currentSources.splice(i);
|
||||||
|
i--;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user