Skip to content

Commit

Permalink
feature: force https on browserUrl method.
Browse files Browse the repository at this point in the history
  • Loading branch information
nistormihai committed Aug 2, 2016
1 parent 49ee6ab commit 1bd208f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/embed/gui-resources/scripts/js/loader.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 : '');
});
Expand Down

0 comments on commit 1bd208f

Please sign in to comment.