mirror of
https://github.com/Mibew/mibew.git
synced 2024-11-15 00:24:12 +03:00
fix SSL lock icon link in chat
This commit is contained in:
parent
2df50d9096
commit
9978074fbc
@ -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(/\&\;/g, '&')
|
||||
+ (style ? ('&style=' + style) : '');
|
||||
+ (style ? ((link.indexOf('?') > -1 ? '&' : '?')
|
||||
+ 'style=' + style) : '');
|
||||
}
|
||||
}
|
||||
}
|
||||
);
|
||||
|
||||
})(Mibew, Handlebars, _);
|
||||
})(Mibew, Handlebars, _);
|
||||
|
Loading…
Reference in New Issue
Block a user