fix SSL lock icon link in chat

This commit is contained in:
jmechnich 2021-06-11 21:19:52 +02:00
parent 2df50d9096
commit 9978074fbc

View File

@ -48,14 +48,18 @@
* Move to secure chat
*/
secure: function() {
if (window.location.protocol == 'https:') {
return;
}
var link = this.model.get('link');
if (link) {
var style = Mibew.Objects.Models.page.get('style');
window.location.href = link.replace(/\&amp\;/g, '&')
+ (style ? ('&style=' + style) : '');
+ (style ? ((link.indexOf('?') > -1 ? '&' : '?')
+ 'style=' + style) : '');
}
}
}
);
})(Mibew, Handlebars, _);
})(Mibew, Handlebars, _);