Fix error Cannot read property 'decrypt_hover' of undefined

This commit is contained in:
Hadi Nategh 2021-02-22 11:46:03 +01:00
parent 907b33454a
commit 6e2b956850
2 changed files with 2 additions and 2 deletions

View File

@ -86,7 +86,7 @@ var InfologApp = /** @class */ (function (_super) {
jQuery(_et2.DOMContainer).on('clear', jQuery.proxy(function () { egw.css(this); }, '#' + nm.getDOMNode(nm).id + ' .et2_box.infoDes'));
// Enable decrypt on hover
if (this.egw.user('apps').stylite) {
this._get_stylite(function () { this.mailvelopeAvailable(function () { app.stylite.decrypt_hover(nm); }); });
this._get_stylite(function () { this.mailvelopeAvailable(function () { var _a; (_a = app.stylite) === null || _a === void 0 ? void 0 : _a.decrypt_hover(nm); }); });
}
break;
case 'infolog.edit.print':

View File

@ -87,7 +87,7 @@ class InfologApp extends EgwApp
// Enable decrypt on hover
if(this.egw.user('apps').stylite)
{
this._get_stylite(function() {this.mailvelopeAvailable(function() {app.stylite.decrypt_hover(nm);});});
this._get_stylite(function() {this.mailvelopeAvailable(function() {app.stylite?.decrypt_hover(nm);});});
}
break;
case 'infolog.edit.print':