diff options
| author | Omar Roth <omarroth@hotmail.com> | 2018-11-18 17:47:40 -0600 |
|---|---|---|
| committer | Omar Roth <omarroth@hotmail.com> | 2018-11-18 17:47:40 -0600 |
| commit | 3418b82dc5f06062f93520e202399d596b9adcfe (patch) | |
| tree | 5d10865f9042004bd98e868f44255a48af44d5a6 | |
| parent | 04d9b16a6bcab99b0aa25214f0ac16c3605d7602 (diff) | |
| download | invidious-3418b82dc5f06062f93520e202399d596b9adcfe.tar.gz invidious-3418b82dc5f06062f93520e202399d596b9adcfe.tar.bz2 invidious-3418b82dc5f06062f93520e202399d596b9adcfe.zip | |
Fix typo in autoplay
| -rw-r--r-- | src/invidious/views/watch.ecr | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/invidious/views/watch.ecr b/src/invidious/views/watch.ecr index 16634948..5326faef 100644 --- a/src/invidious/views/watch.ecr +++ b/src/invidious/views/watch.ecr @@ -177,7 +177,7 @@ <% if !rvs.empty? && !plid && params[:continue] %> player.on('ended', function() { window.location.replace("/watch?v=" - + "<%= rvs.select { |rv| rv["id"]? }[0]? %>" + + "<%= rvs.select { |rv| rv["id"]? }[0]?.try &.["id"] %>" + "&continue=1" <% if params[:listen] %> + "&listen=1" @@ -196,7 +196,7 @@ function continue_autoplay(target) { if (target.checked) { player.on('ended', function() { window.location.replace("/watch?v=" - + "<%= rvs.select { |rv| rv["id"]? }[0]? %>" + + "<%= rvs.select { |rv| rv["id"]? }[0]?.try &.["id"] %>" + "&continue=1" <% if params[:listen] %> + "&listen=1" |
