Skip to content

Commit 31de39a

Browse files
authored
Remove insecure protocol in embedded view
1 parent d0fc256 commit 31de39a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

assets/js/player.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -751,7 +751,7 @@ if (window.location.pathname.startsWith("/embed/")) {
751751

752752
// Create hyperlink for current instance
753753
redirect_element = document.createElement("a");
754-
redirect_element.setAttribute("href", `http://${window.location.host}/watch?v=${window.location.pathname.replace("/embed/","")}`)
754+
redirect_element.setAttribute("href", `//${window.location.host}/watch?v=${window.location.pathname.replace("/embed/","")}`)
755755
redirect_element.appendChild(document.createTextNode("Invidious"))
756756

757757
watch_on_invidious_button.el().appendChild(redirect_element)

0 commit comments

Comments
 (0)