summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorOmar Roth <omarroth@hotmail.com>2018-04-11 17:24:50 -0500
committerOmar Roth <omarroth@hotmail.com>2018-04-11 17:24:50 -0500
commit99d299d62adbcecc22df7a6f26b1388ba8f61157 (patch)
tree4c216b20cd8beb56e551961d2569c75e66f04672 /src
parent6f0e2365de98dbf2c39332225ddff9efe3893b30 (diff)
downloadinvidious-99d299d62adbcecc22df7a6f26b1388ba8f61157.tar.gz
invidious-99d299d62adbcecc22df7a6f26b1388ba8f61157.tar.bz2
invidious-99d299d62adbcecc22df7a6f26b1388ba8f61157.zip
Don't filter sources for audio-only
Diffstat (limited to 'src')
-rw-r--r--src/views/watch.ecr2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/views/watch.ecr b/src/views/watch.ecr
index 0b4ac8ef..88d8f53c 100644
--- a/src/views/watch.ecr
+++ b/src/views/watch.ecr
@@ -103,6 +103,7 @@ function toggle_comments(target) {
}
};
+<% if !listen %>
var currentSources = player.currentSources();
for ( var i = 0; i < currentSources.length; i++ ) {
if (player.canPlayType(currentSources[i]["type"].split(";")[0]) === "") {
@@ -112,6 +113,7 @@ for ( var i = 0; i < currentSources.length; i++ ) {
}
player.src(currentSources);
+<% end %>
</script>
<div class="h-box">