Mercurial > libervia-web
diff src/browser/sat_browser/panels.py @ 549:cd56f2b0e85b
browser_side: disable OTR if the browser is too old to offer crypto.getRandomValues (CSPRNG)
author | souliane <souliane@mailoo.org> |
---|---|
date | Wed, 17 Sep 2014 17:15:03 +0200 |
parents | d02335553b5d |
children | 77372641e05d |
line wrap: on
line diff
--- a/src/browser/sat_browser/panels.py Thu Sep 11 12:59:13 2014 +0200 +++ b/src/browser/sat_browser/panels.py Wed Sep 17 17:15:03 2014 +0200 @@ -1121,7 +1121,7 @@ self.type = type_ # FIXME: temporary dirty initialization to display the OTR state - header_info = host.plugins['otr'].getInfoText() if type_ == 'one2one' else None + header_info = host.plugins['otr'].getInfoText() if (type_ == 'one2one' and 'otr' in host.plugins) else None base_widget.LiberviaWidget.__init__(self, host, title=target.bare, info=header_info, selectable=True) self.__body = AbsolutePanel()