summaryrefslogtreecommitdiffstats
path: root/assets/js/player.js
diff options
context:
space:
mode:
authorSamantaz Fox <coding@samantaz.fr>2022-04-17 12:08:54 +0200
committerGitHub <noreply@github.com>2022-04-17 12:08:54 +0200
commit21bd4edee480e09f7e1dfc2659f60327b35f502d (patch)
tree684b1fff350ae1477d5d605746759807eaefeaf3 /assets/js/player.js
parentd0fc2569ff5628c75c1316c2e8f82ea1842015b2 (diff)
parent31de39a7a44f1beeea0aac0786760f91737e7be8 (diff)
downloadinvidious-21bd4edee480e09f7e1dfc2659f60327b35f502d.tar.gz
invidious-21bd4edee480e09f7e1dfc2659f60327b35f502d.tar.bz2
invidious-21bd4edee480e09f7e1dfc2659f60327b35f502d.zip
Merge pull request #3034 from AHOHNMYC/http-fix
Remove insecure protocol in embedded view
Diffstat (limited to 'assets/js/player.js')
-rw-r--r--assets/js/player.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/assets/js/player.js b/assets/js/player.js
index e478fb8f..f4440de1 100644
--- a/assets/js/player.js
+++ b/assets/js/player.js
@@ -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)