mirror of
https://gitea.invidious.io/iv-org/invidious-copy-2022-08-14.git
synced 2024-08-15 00:53:20 +00:00
Remove insecure protocol in embedded view
This commit is contained in:
parent
d0fc2569ff
commit
31de39a7a4
1 changed files with 1 additions and 1 deletions
|
@ -751,7 +751,7 @@ if (window.location.pathname.startsWith("/embed/")) {
|
||||||
|
|
||||||
// Create hyperlink for current instance
|
// Create hyperlink for current instance
|
||||||
redirect_element = document.createElement("a");
|
redirect_element = document.createElement("a");
|
||||||
redirect_element.setAttribute("href", `http://${window.location.host}/watch?v=${window.location.pathname.replace("/embed/","")}`)
|
redirect_element.setAttribute("href", `//${window.location.host}/watch?v=${window.location.pathname.replace("/embed/","")}`)
|
||||||
redirect_element.appendChild(document.createTextNode("Invidious"))
|
redirect_element.appendChild(document.createTextNode("Invidious"))
|
||||||
|
|
||||||
watch_on_invidious_button.el().appendChild(redirect_element)
|
watch_on_invidious_button.el().appendChild(redirect_element)
|
||||||
|
|
Loading…
Reference in a new issue