From 1bd208fe62fbf867005214c9c75b296c60185003 Mon Sep 17 00:00:00 2001 From: Nistor Mihai Date: Wed, 3 Aug 2016 00:24:51 +0300 Subject: [PATCH] feature: force https on browserUrl method. --- plugins/embed/gui-resources/scripts/js/loader.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/embed/gui-resources/scripts/js/loader.js b/plugins/embed/gui-resources/scripts/js/loader.js index 677050aeb..7421aba66 100644 --- a/plugins/embed/gui-resources/scripts/js/loader.js +++ b/plugins/embed/gui-resources/scripts/js/loader.js @@ -62,7 +62,7 @@ var urlRegex = /^(http[s]?:)?\/{2}([0-9.\-A-Za-z]+)(?::(\d+))?/, liveblog.browserUrl = function(urlString) { urlString = protocolRegex.test(urlString) ? urlString : '//' + urlString; urlString = urlString.replace(urlRegex, function(all, protocol, hostname, port) { - return '//' + + return 'https://' + hostname + (port && (port !== '80' && port !== '443') ? ':' + port : ''); });