mirror of
https://github.com/Mibew/mibew.git
synced 2024-11-15 08:34:11 +03:00
fix SSL lock icon link in chat
This commit is contained in:
parent
2df50d9096
commit
9978074fbc
@ -48,11 +48,15 @@
|
||||
* 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) : '');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user