From: Chocobozzz Date: Sun, 20 Nov 2016 15:13:42 +0000 (+0100) Subject: Client: add warning if the user want to embed a video of a non https website X-Git-Tag: v0.0.1-alpha~605 X-Git-Url: https://git.immae.eu/?a=commitdiff_plain;h=2c8d4697db4b5a2d645b7bfcaf91093a64597958;hp=cf02fbfb17f9e04312f771f245778d31bc1b69d2;p=github%2FChocobozzz%2FPeerTube.git Client: add warning if the user want to embed a video of a non https website --- diff --git a/client/src/app/videos/video-watch/video-share.component.html b/client/src/app/videos/video-watch/video-share.component.html index 2e83e9a45..1c2fac1d7 100644 --- a/client/src/app/videos/video-watch/video-share.component.html +++ b/client/src/app/videos/video-watch/video-share.component.html @@ -19,6 +19,10 @@ + +
+ The url is not secured (no HTTPS), so the embed video won't work on HTTPS websites (web browsers block non secured HTTP requests on HTTPS websites). +
diff --git a/client/src/app/videos/video-watch/video-share.component.ts b/client/src/app/videos/video-watch/video-share.component.ts index 74b238350..8e6de1294 100644 --- a/client/src/app/videos/video-watch/video-share.component.ts +++ b/client/src/app/videos/video-watch/video-share.component.ts @@ -35,4 +35,8 @@ export class VideoShareComponent { getVideoUrl() { return window.location.href; } + + notSecure() { + return window.location.protocol === 'http:'; + } }