Merge pull request #3034 from AHOHNMYC/http-fix

Remove insecure protocol in embedded view
pull/3039/head
Samantaz Fox 2022-04-17 12:08:54 +02:00 zatwierdzone przez GitHub
commit 21bd4edee4
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -751,7 +751,7 @@ if (window.location.pathname.startsWith("/embed/")) {
// Create hyperlink for current instance
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"))
watch_on_invidious_button.el().appendChild(redirect_element)