From 6e2b9568503b61093e65054a362a36c9c8d5f7f7 Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Mon, 22 Feb 2021 11:46:03 +0100 Subject: [PATCH] Fix error Cannot read property 'decrypt_hover' of undefined --- infolog/js/app.js | 2 +- infolog/js/app.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/infolog/js/app.js b/infolog/js/app.js index 3900ec09d9..ff36f22b74 100644 --- a/infolog/js/app.js +++ b/infolog/js/app.js @@ -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': diff --git a/infolog/js/app.ts b/infolog/js/app.ts index 2f936f4f6d..3e238a7e8b 100644 --- a/infolog/js/app.ts +++ b/infolog/js/app.ts @@ -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':