]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/src/app/videos/video-watch/video-share.component.ts
Client: add warning if the user want to embed a video of a non https website
[github/Chocobozzz/PeerTube.git] / client / src / app / videos / video-watch / video-share.component.ts
index 74b238350c55e8fdd6823eaff37d45bc8964260c..8e6de129423ef76b5f6829b55dd336e8bdc3d71f 100644 (file)
@@ -35,4 +35,8 @@ export class VideoShareComponent {
   getVideoUrl() {
     return window.location.href;
   }
+
+  notSecure() {
+    return window.location.protocol === 'http:';
+  }
 }