kopia lustrzana https://github.com/iv-org/invidious
Fix typo in autoplay
rodzic
04d9b16a6b
commit
3418b82dc5
|
@ -177,7 +177,7 @@
|
||||||
<% if !rvs.empty? && !plid && params[:continue] %>
|
<% if !rvs.empty? && !plid && params[:continue] %>
|
||||||
player.on('ended', function() {
|
player.on('ended', function() {
|
||||||
window.location.replace("/watch?v="
|
window.location.replace("/watch?v="
|
||||||
+ "<%= rvs.select { |rv| rv["id"]? }[0]? %>"
|
+ "<%= rvs.select { |rv| rv["id"]? }[0]?.try &.["id"] %>"
|
||||||
+ "&continue=1"
|
+ "&continue=1"
|
||||||
<% if params[:listen] %>
|
<% if params[:listen] %>
|
||||||
+ "&listen=1"
|
+ "&listen=1"
|
||||||
|
@ -196,7 +196,7 @@ function continue_autoplay(target) {
|
||||||
if (target.checked) {
|
if (target.checked) {
|
||||||
player.on('ended', function() {
|
player.on('ended', function() {
|
||||||
window.location.replace("/watch?v="
|
window.location.replace("/watch?v="
|
||||||
+ "<%= rvs.select { |rv| rv["id"]? }[0]? %>"
|
+ "<%= rvs.select { |rv| rv["id"]? }[0]?.try &.["id"] %>"
|
||||||
+ "&continue=1"
|
+ "&continue=1"
|
||||||
<% if params[:listen] %>
|
<% if params[:listen] %>
|
||||||
+ "&listen=1"
|
+ "&listen=1"
|
||||||
|
|
Ładowanie…
Reference in New Issue