mirror of
https://github.com/iv-org/invidious.git
synced 2024-11-22 21:47:26 +00:00
Use location.assign instead of window.location.replace
This commit is contained in:
parent
81c2ecc788
commit
c6ec8317ac
@ -179,7 +179,7 @@
|
|||||||
<script>
|
<script>
|
||||||
<% 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="
|
location.assign("/watch?v="
|
||||||
+ "<%= rvs.select { |rv| rv["id"]? }[0]?.try &.["id"] %>"
|
+ "<%= rvs.select { |rv| rv["id"]? }[0]?.try &.["id"] %>"
|
||||||
+ "&continue=1"
|
+ "&continue=1"
|
||||||
<% if params[:listen] %>
|
<% if params[:listen] %>
|
||||||
@ -198,7 +198,7 @@ player.on('ended', function() {
|
|||||||
function continue_autoplay(target) {
|
function continue_autoplay(target) {
|
||||||
if (target.checked) {
|
if (target.checked) {
|
||||||
player.on('ended', function() {
|
player.on('ended', function() {
|
||||||
window.location.replace("/watch?v="
|
location.assign("/watch?v="
|
||||||
+ "<%= rvs.select { |rv| rv["id"]? }[0]?.try &.["id"] %>"
|
+ "<%= rvs.select { |rv| rv["id"]? }[0]?.try &.["id"] %>"
|
||||||
+ "&continue=1"
|
+ "&continue=1"
|
||||||
<% if params[:listen] %>
|
<% if params[:listen] %>
|
||||||
@ -295,7 +295,7 @@ function get_playlist() {
|
|||||||
|
|
||||||
if (xhr.response.nextVideo) {
|
if (xhr.response.nextVideo) {
|
||||||
player.on('ended', function() {
|
player.on('ended', function() {
|
||||||
window.location.replace("/watch?v="
|
location.assign("/watch?v="
|
||||||
+ xhr.response.nextVideo
|
+ xhr.response.nextVideo
|
||||||
+ "&list=<%= plid %>"
|
+ "&list=<%= plid %>"
|
||||||
<% if params[:listen] %>
|
<% if params[:listen] %>
|
||||||
|
Loading…
Reference in New Issue
Block a user