From 0de5511544db899ba460cd0716dcb69294f9d023 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lorenz=20H=C3=BCbschle-Schneider?= Date: Thu, 7 Aug 2014 18:02:39 +0100 Subject: [PATCH] Default to using SSL if the page is using it as well --- js/glowingbear.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/glowingbear.js b/js/glowingbear.js index 805bebe..a1ac3d8 100644 --- a/js/glowingbear.js +++ b/js/glowingbear.js @@ -841,7 +841,7 @@ weechat.controller('WeechatCtrl', ['$rootScope', '$scope', '$store', '$timeout', $store.bind($scope, "host", "localhost"); $store.bind($scope, "port", "9001"); $store.bind($scope, "proto", "weechat"); - $store.bind($scope, "ssl", false); + $store.bind($scope, "ssl", (window.location.protocol === "https:")); $store.bind($scope, "savepassword", false); if ($scope.savepassword) { $store.bind($scope, "password", "");