This is an automated email from the git hooks/post-receive script. New commit to branch develop in repository mum. See http://git.chorem.org/mum.git commit a4817eaadab60d9c5e1b5b2b70e243b82d3a45fe Author: Benjamin POUSSIN <poussin@codelutin.com> Date: Wed Jul 8 12:48:06 2015 +0200 use wss WebSocket if site use https --- static/js/controllers/headCtrl.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/static/js/controllers/headCtrl.js b/static/js/controllers/headCtrl.js index 7a0fffe..37e8c7a 100644 --- a/static/js/controllers/headCtrl.js +++ b/static/js/controllers/headCtrl.js @@ -32,7 +32,11 @@ mumApp.controller('headCtrl', function ($scope, $rootScope, toastr, $interval, $ }); // Concerning WebSocket - var ws = new WebSocket("ws://" + $location.host() + ":" + $location.port() + "/websocket"); + var ssl = ""; + if ($location.protocol() === "https") { + ssl = 's'; + } + var ws = new WebSocket("ws" + ssl + "://" + $location.host() + ":" + $location.port() + "/websocket"); ws.onopen = function () { var request = JSON.stringify({"GET_HOSTS": ""}); -- To stop receiving notification emails like this one, please contact chorem.org SCM administrator <admin+scm@chorem.org>.