summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOmar Roth <omarroth@hotmail.com>2018-04-10 21:54:23 -0500
committerOmar Roth <omarroth@hotmail.com>2018-04-10 21:54:23 -0500
commita8db5aaed84ee04da3312b5f652781dcd5bbd699 (patch)
treebe1953bd7d70d8542b64a956ea1a5a9b5f465435
parent20c0bff96d2a3785be712e1ee14b872d8eeff532 (diff)
downloadinvidious-a8db5aaed84ee04da3312b5f652781dcd5bbd699.tar.gz
invidious-a8db5aaed84ee04da3312b5f652781dcd5bbd699.tar.bz2
invidious-a8db5aaed84ee04da3312b5f652781dcd5bbd699.zip
Decrement currentSource length on splice
-rw-r--r--src/views/watch.ecr1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/views/watch.ecr b/src/views/watch.ecr
index 766dda77..6e844b54 100644
--- a/src/views/watch.ecr
+++ b/src/views/watch.ecr
@@ -108,6 +108,7 @@ var currentSources = player.currentSources();
for ( var i = 0; i < currentSources.length; i++ ) {
if (player.canPlayType(currentSources[i]["type"].split(";")[0]) === "") {
currentSources.splice(i);
+ i--;
}
}