]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commitdiff
Client: fix https warning in make friends
authorChocobozzz <florian.bigard@gmail.com>
Mon, 21 Nov 2016 20:36:07 +0000 (21:36 +0100)
committerChocobozzz <florian.bigard@gmail.com>
Mon, 21 Nov 2016 21:09:45 +0000 (22:09 +0100)
client/config/webpack.common.js
client/src/app/admin/friends/friend-add/friend-add.component.ts

index 4ab813d637e73823902b9e822ab73392c7ecb86b..8384ef8ddb6a7770429530468c7fb0fd881f0d1b 100644 (file)
@@ -179,6 +179,7 @@ module.exports = function (options) {
        *
        * See: https://www.npmjs.com/package/copy-webpack-plugin
        */
+      // Used by embed.html
       new CopyWebpackPlugin([
         {
           from: 'src/assets',
index 14f24c1924d53313e0f8725e33825b6d484f6f33..22b0241b4274c35aba18b0c5e6cff0b08012238e 100644 (file)
@@ -28,7 +28,7 @@ export class FriendAddComponent implements OnInit {
   }
 
   canMakeFriends() {
-    return window.location.protocol === 'https://';
+    return window.location.protocol === 'https:';
   }
 
   customTrackBy(index: number, obj: any): any {